NET::Telnet
am 15.02.2006 14:42:49 von Liu Shiao-Huan
Hi, all
When I use NET::Telnet module from windows to telnet SUN solaris8.
now I can use telnet->cmd('kill -9 $PID') to kill a process. but when I use
the same way to start a new process. It doesn't work. Can u tell me where is
my fault?
telnet->cmd('monitor.csh');
thank you very much.
Re: NET::Telnet
am 16.02.2006 08:17:54 von Christian Winter
Liu Shiao-Huan wrote:
> Hi, all
> When I use NET::Telnet module from windows to telnet SUN solaris8.
>
> now I can use telnet->cmd('kill -9 $PID') to kill a process. but when I use
> the same way to start a new process. It doesn't work. Can u tell me where is
> my fault?
> telnet->cmd('monitor.csh');
Did you capture the response from cmd() and look into it,
like shown in the documentation to Net::Telnet? If not,
I strongly encourage you to do so, before asking a question
here that will most probably turn out to having nothing to do
with Perl at all.
I guess if you look at cmd()'s response you will get back
something like "command not found" or the like, pointing out
that monitor.csh is not found in your shell's search paths.
-Chris