List Info

Thread: Error while executing unix commands using Net::Telnet




Error while executing unix commands using Net::Telnet
user name
2006-02-13 09:44:30
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

Error while executing unix commands using Net::Telnet
user name
2006-02-13 10:01:59

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.

Error while executing unix commands using Net::Telnet
user name
2006-02-14 06:56:59
hey mons thanx that worked ..

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )