Tagged Questions
-2
votes
1answer
97 views
automatic capturing top output by cronjob CENTOS 6.5 x86_64
I have this command:
top -n 14400 -a -b -d 1 > /toplogfile.txt
I want to make a script which is run by cron every day to capture top output, and if it is possible gzip the output file after the ...
1
vote
0answers
1k views
Using sshpass, return code (exit status) differs for reasons unknown using valid commands
There are a few things going on here but I think ultimately, either CLish or SSH is returning an exit code that is messing up my work flow.
I'm attempting to connect to a remote machine (CLish shell) ...
0
votes
0answers
51 views
Shell script use ssh forwarding to send a file to a second system
I have ssh forwarding enabled and ssh to server A. On server A I want to run a script as root and take advantage of the ssh key being forwarded for USER to send a file to system B. I'm getting a ...