The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-30-2008
jim mcnamara jim mcnamara is offline
...@...
 

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
Reply With Quote