chinzi wrote:
> ya i had written service only ..
>
> even when i am trying $obj->cmd("chkconfig
--list telnet");
>
> i am getting -bash: chkconfig:command not found ..
>
> i can't figure out the error
bash at the telnet server says you, that he can't founc
command
"chkconfig"
If you sure, that there are exists such command, then
possible the
telnet shell has bad env.
Do simple command:
$obj->cmd("/usr/bin/env");
and look for the PATH env variable.
If path to chkconfig not exists in PATH, then remote system
not found
the binary.
In this case you may try ty write full path to chkconfig.
(You may get the full path by typing command:
which chkconfig
from your shell
)
PS: Don't use telnet, it's unsecure.
Better use ssh.
|