Re: exit status of remote commands



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.
.



Relevant Pages


Loading