Re: exit status of remote commands
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Thu, 4 Oct 2007 13:01:28 +0100
Quoth Ironhide <gourabbaksi@xxxxxxxxx>:
Hi,
I want to execute some commands on a remote machine through ssh and
get back their results; would ideally like get back the
1. exit status of the command executed remotely
2. stdout
3. stderr
All this I would like to do inside a perl script and get all of the
above 3 in 3 separate variables.
Can this be done?
Well, the obvious way is to run ssh(1) with something like IPC::Run...
p.s.: I have already tried the Net::SSH module; would be helpful if
you guys could suggest me other ways of doing this.
What was your problem with Net::SSH?
Ben
.
- References:
- exit status of remote commands
- From: Ironhide
- exit status of remote commands
- Prev by Date: Re: SIG{'PIPE'}
- Next by Date: Re: exit status of remote commands
- Previous by thread: exit status of remote commands
- Next by thread: Re: exit status of remote commands
- Index(es):
Relevant Pages
|
|