Search Results

Search: Posts Made By: mr_dthomas
31,481
Posted By mr_dthomas
After reading this article I corrected my syntax ...
After reading this article I corrected my syntax
How To Append File Using SSH (http://blog.taragana.com/index.php/archive/how-to-append-file-using-ssh/)

This line:
ssh root@${i} echo "Server1"...
31,481
Posted By mr_dthomas
Here is my test script #!/bin/bash #The...
Here is my test script

#!/bin/bash
#The SERVERS variable cats a list of servers
SERVERS=`cat servers`;
for i in $SERVERS;
do
ssh root@${i} echo "Server1" >>file
done

This will...
31,481
Posted By mr_dthomas
ssh text into file on remote server
Hello,

I have about 90 servers that I need to update snmp configs. I am trying to write a script that will echo 4 new lines of text into the snmpd.conf file. I have tested it locally and it works...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 04:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy