makarandmk
Programmer
Hi,
In my cgi script, I want to do telnet or rsh to some different host and run the commands on that host. How do I do that?
e.g. In my CGI script, there is one function called removeCase -
sub removeCase
{
01 I_WANT_TO_GO_TO_ONE_HOST;(want to do telnet/rsh)
02 WANT_TO_EXECUTE_SET_OF_COMMANDS_ON_THAT_HOSTMACHINE;
}
system("rsh $host"
or print `rsh $host`
is not working for me... Pl advise.
In my cgi script, I want to do telnet or rsh to some different host and run the commands on that host. How do I do that?
e.g. In my CGI script, there is one function called removeCase -
sub removeCase
{
01 I_WANT_TO_GO_TO_ONE_HOST;(want to do telnet/rsh)
02 WANT_TO_EXECUTE_SET_OF_COMMANDS_ON_THAT_HOSTMACHINE;
}
system("rsh $host"
or print `rsh $host`
is not working for me... Pl advise.