The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to execute a remote file with local command Veera_Raghav HP-UX 2 01-16-2009 10:42 AM
Execute command from terminal on remote machine Ranu Shell Programming and Scripting 0 10-09-2007 05:13 AM
how to execute a script on remote machine balireddy_77 Shell Programming and Scripting 4 09-27-2006 08:45 PM
execute a command in remote ZINGARO UNIX for Dummies Questions & Answers 3 08-08-2006 11:16 AM
Remote execute a file via ftp giannicello UNIX for Dummies Questions & Answers 4 01-17-2003 10:47 AM

Closed Thread
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
  #1 (permalink)  
Old 06-06-2006
GCTEII GCTEII is offline
Registered User
  
 

Join Date: Feb 2006
Location: JP.Tokyo
Posts: 30
Question about how to execute command on the Sorias from the remote.

Hi, all
please help me this time@@!
I want to execute the shell on the server from the remote.
How can I do that and save the return code in the variable?
I want to execute the script on the ten servers at the same time... I'd like to find a fast method to solve it!

Thanks in advance!

Last edited by GCTEII; 06-06-2006 at 04:27 AM..
  #2 (permalink)  
Old 06-06-2006
x96riley3 x96riley3 is offline
Registered User
  
 

Join Date: Mar 2006
Location: Nashville
Posts: 79
I'm not sure most of us understand exactly what you want to do. I'm guessing that you want to execute a shell script on a remote machine and check for an error code. I think if I were you I would put some error checking in the script itself and write all errors to a log file on the remote machine.


-X
  #3 (permalink)  
Old 06-06-2006
Mike_the_Man Mike_the_Man is offline
Registered User
  
 

Join Date: May 2006
Location: MD
Posts: 16
ssh <remotehost> '<remote script>'
MYVAR=`echo $?` (back single quotes)
  #4 (permalink)  
Old 06-07-2006
GCTEII GCTEII is offline
Registered User
  
 

Join Date: Feb 2006
Location: JP.Tokyo
Posts: 30
Yes, I want to execute the script in the background on the remote server and record the return code in the local file!
Closed Thread

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 03:31 PM.


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