Re: exit status of remote commands
- From: xhoster@xxxxxxxxx
- Date: 04 Oct 2007 17:16:16 GMT
Ironhide <gourabbaksi@xxxxxxxxx> wrote:
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?
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 wrong with Net::SSH? If you don't tell us what you found
unsuitable about Net::SSH, then how are we to know whether some other
module we might recommend suffers the same problem or not?
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
.
- References:
- exit status of remote commands
- From: Ironhide
- exit status of remote commands
- Prev by Date: Re: perl join on a non printable variable character ?
- Next by Date: Re: jabba the tuh
- Previous by thread: Re: exit status of remote commands
- Next by thread: FAQ 4.1 Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)?
- Index(es):
Relevant Pages
|
Loading