Re: read command line variables (130 Views)
Reply
Honored Contributor
Todd McDaniel_1
Posts: 1,387
Registered: ‎08-26-2002
Message 1 of 3 (130 Views)
Accepted Solution

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.
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 2 of 3 (130 Views)

Re: read command line variables

That would be ${*} or ${@}.
If it ain't broke, I can fix that.
Honored Contributor
Todd McDaniel_1
Posts: 1,387
Registered: ‎08-26-2002
Message 3 of 3 (130 Views)

Re: read command line variables

okay thanks, I was having a mental block!!
Unix, the other white meat.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.