Search Results

Search: Posts Made By: indianya
8,917
Posted By techy1
try doing it like this: for x in server1...
try doing it like this:

for x in server1 server2 .. server10
do
ssh $x "<command>" </dev/null > file.log
done

i would test with a command that wont hard the system.

/home/insta cat...
8,917
Posted By MadeInGermany
The x and q options are not required but can...
The x and q options are not required but can speed things up.
ssh -qnx ...
8,917
Posted By jim mcnamara
When run in the background ssh requires the -n...
When run in the background ssh requires the -n option.

ssh -n servername 'command goes here ' &
4,526
Posted By indo1144
You could always use a "workaround" like this: ...
You could always use a "workaround" like this:
ls -lrt | tail -2 | head -1 | awk '{ print $9 }'to find out the second oldest filename in a directory and FTP that file, leaving the currently open...
4,526
Posted By Unbeliever
You can check to see if any file has a particular...
You can check to see if any file has a particular file open using the lsof command.

lsof filename

produces no output if no process has that file open. If you're running on Solaris then you can...
4,526
Posted By adurga
I doubt whether UNIX has built in commands for...
I doubt whether UNIX has built in commands for these requriements. I see two queries here.

1) 'Already FTPed files' not be FTPed again :- Two solutions 1) Record the timings of when ever FTP...
10,983
Posted By futurelet
Use Awk: BEGIN { FS="\034"; RS="\035";...
Use Awk:

BEGIN { FS="\034"; RS="\035"; OFS="," }
{ gsub( /\n/, "" )
$1=$1
# If last field is empty, remove it.
if ( ""==$NF ) NF--
print
}
Showing results 1 to 7 of 7

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