Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsh/shell script questions

Status
Not open for further replies.

cpalermo

ISP
Sep 13, 2001
10
US
I am having some difficulty with rsh and shell scripts.

What I have is a shell script that processes 4 different values from the command line.

For example:
#!/bin/sh
if($1=="1) then
do this
endif
if($2=="1) then
do this
end

and so on...

The script is called by:
>script.sh var1 var2 var3 var4

My problem is calling this script and providing it with values with rsh.

Can someone provide me with the syntax for rsh to do this?

Thanks,
Chris

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top