The UNIX and Linux Forums
>
OS Specific Forums
>
HP-UX
returned from remote command
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
returned from remote command
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
04-30-2008
jim mcnamara
...@...
Join Date: Feb 2004
Location: NM
Posts: 3,502
chaining works too:
Code:
retval=`rsh hostname "command1 && echo "OK1" && command2 && echo "OK"`
- tells you which command failed;
plus it stops if command1 fails and doesn't do command2 which can be good sometimes
jim mcnamara
View Public Profile
Find all posts by jim mcnamara