[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to know if a command was successful on remote server
From: |
Ken Irving |
Subject: |
Re: how to know if a command was successful on remote server |
Date: |
Wed, 10 Dec 2008 08:10:06 -0900 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Dec 10, 2008 at 08:48:57AM -0800, Dolphin06 wrote:
>
> Hello i m sending command to remote server, in my script on my local machine.
> I would like to know how can i return a value if the command on the remote
> server failed.
> on my script on local machine :
>
> #! /bin/bash
>
> #how can i get a returned value from this ?
> ssh $USER@$SERVER remotescript param
>From ssh(1):
ssh exits with the exit status of the remote command or with 255 if an
error occurred.
Ken
--
Ken Irving