T
ToddAndMargo
Hi All,
I was over at
http://search.cpan.org/~fkolodny/Net-Rexec-0.12/Rexec.pm
looking at the rexec example. (I have rexec working on a server I want
to read the tape drive status off of.)
Okay, I know, just try it an see, but I will not be out to the
location for a while and I was hoping someone would put
me out of my ignorance
Syntax question: how do I enter "mt -f /dev/st0 status; grep -i
online"
into the "command" field below? Do I put quotes around it?
How do I separate my command from the "userid" and
"password"? I am concerned that the line below will
confuse "-f" for the userid, etc..
use Net::Rexec 'rexec';
($rc, @output) = rexec(host, command, [userid, [password]]);
Many thanks,
--T
I was over at
http://search.cpan.org/~fkolodny/Net-Rexec-0.12/Rexec.pm
looking at the rexec example. (I have rexec working on a server I want
to read the tape drive status off of.)
Okay, I know, just try it an see, but I will not be out to the
location for a while and I was hoping someone would put
me out of my ignorance
Syntax question: how do I enter "mt -f /dev/st0 status; grep -i
online"
into the "command" field below? Do I put quotes around it?
How do I separate my command from the "userid" and
"password"? I am concerned that the line below will
confuse "-f" for the userid, etc..
use Net::Rexec 'rexec';
($rc, @output) = rexec(host, command, [userid, [password]]);
Many thanks,
--T