Installing a script file in 1200 Linux servers [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I need put a script file and a line in crontab in 1200 Linux servers.
How could I do this task automatically ?

Many many options!
write a script that connects via SSH to each of those servers, and have it create your script file & modify crontab!
use Ansible!
use SaltStack!
use < some other configuration management framework >!
Seriously though, are you suggesting you are in charge of 1200 servers and the usual procedure of doing, well, anything is by hand? Flabbergasting!

Related

How to parse lines from a file on a FTP server without downloading it [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I want to parse a line from large files on a FTP server without downloading them, using Linux command line.
Something like this comes to mind:
wget <ftp_file> | grep <something_from_a_line>
Is there a way to do this?
Reading a remote file from a client machine implies that you download it (explicitly or implicitly). Otherwise you must find some way to connect onto the server and read the file locally on the server.

Is there a Raspberry Pi command for fetching files via SSH? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I'm in a team taking part in the Astro Pi competition. Our experiment uses AI to process satellite images - but that isn't relevant to the question.
I need a method for a Raspberry Pi to fetch a file from another Pi - rather like the scp command (secure copy) but that fetches a file as opposed to sending one. Is there a command for this?
Thanks!
The same scp can do that.
Just use the following syntax:
$ scp username#from_the_other_Pi:/remote/directory/file /local/directory/file
And you're done!

How can i can find the most frequently applications used by a user in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is there any way that i can find the most frequently applications used by a user in Linux? In Windows you can read this information from registry.
Make sure that accounting is turned on:
chkconfig psacct on && /etc/init.d/psacct start
...and then get summary info with sa. Look at examples here or here.
My own experience is that the most frequent command in the account is a shell.

Linux CentOs Restart Services [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have some applications running on a remote CentOs server. I'd want them to restart in case of any unexpected server failures or shutdown or application crashes. Any suggestions on how could i achieve this ?
Just make them "respawn" in inittab. Init can maintain some processes as constantly running. Just set the process you need to continually run to have the action field type of "respawn".
See here.

Linux restores windows on reboot [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
A computer has been overloaded with too many windows/programs at once which leads to crash. Unfortunately the system is configured (somehow) to reload all of these windows/programs on reboot, does anyone know how to get around this and have a clean boot? Thank you..
Log into a terminal (hit ALT+CTRL+F1) and edit/remove your session file (dependent on desktop environment).
Better aks for help on askubuntu

Resources