Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

read command line variables

SOLVED
Go to Solution
Honored Contributor Honored Contributor

read command line variables

I feel really stupid asking this, but I lost a script I used to run with remsh so I can run commands remotely on several servers at once to gather data. I am missing one part of my script I cant remember.

for name in server1 server2 etc...
do
remsh $name # in quotes from the command line
sleep 1
done
Unix, the other white meat.
2 REPLIES
Highlighted
Acclaimed Contributor Acclaimed Contributor

Re: read command line variables

That would be ${*} or ${@}.
If it ain't broke, I can fix that.
Honored Contributor Honored Contributor

Re: read command line variables

okay thanks, I was having a mental block!!
Unix, the other white meat.