The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change ip via remsh kenshinhimura HP-UX 7 04-12-2008 10:03 AM
how to use remsh to duplicate all... rauphelhunter Shell Programming and Scripting 0 01-14-2008 01:19 AM
remsh kazanoova2 UNIX for Dummies Questions & Answers 3 12-21-2004 10:39 AM
remsh question aaareyes UNIX for Dummies Questions & Answers 2 06-04-2003 04:10 PM
remsh and nohup tavaresd UNIX for Dummies Questions & Answers 2 09-10-2002 10:28 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-03-2005
sabyasm sabyasm is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
Post remsh problem

Hi All,

We have 2 unix boxes HP UX. From Box1 we need to run a script on Box2 using remsh. The job at Box2 exits with status 0 on successful completion & 1 if fails.

But even if the scrips fails (exits with return status 1) at Box2, the $? get the value 0.

script at Box2 : remote_script.sh

#! /bin/sh
exit 1

script at Box1: local_script.sh

remsh Box2 /path_on_Box2/remote_script.sh
echo $?


while running the script local_script.sh at Box1 we are getting the o/p = 0


How do we get the return status of the remote shell on Box1 ?
Please help.

Thanks
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0