Hi Bill,
the default shell when i login to the linux machine is the korn shell.
I have tried without the escaping of '/' and ' ' (space) ... it still doesnt
work ... ofcourse i tried 'chdir /view' but it reports an error. (since chdir
is not a shell-command).
I am stuck at this place for more than 5 hours and google aint helping me
either. :(
ANy help is most appreciable.
Ukh.
Bill Luebkert <[EMAIL PROTECTED]> wrote:
ukhas jean wrote:
> Hi Bill et al ...
>
> I have connected successfully to my remote linux machine using
> Net::Telnet and am able to execute commands like pwd, ls, who, etc. ...
> but ... there is one command that is troubling me ... the "cd" command ...
> Sorry to say, but, I cant see it mentioned in documentation how to do a
> successful directory change using a "telnet-object" ...
> i tried this:-
>
> $t->cmd('cd\ \/view');
> where $t is the object name ... and cd /view is the directory i want to
> goto using $t.
Why are you escaping a space and '/' ? 'cd /view' would seem to be fine
instead.
> when i use the above line the script simply hangs and goes into a
> time-out. when i comment this line the rest of the code works fine; so i
> guess this is where i am going wrong.
>
> Any pointers in the right direction plz??
Musing a bit:
I assume the commands are being run through a shell on the remote host.
What shell are the commands being run under remotely ? Maybe try
'chdir /view' as an alternate if the fix above for cd doesn't work.
Could the telnet dameon be grabbing the cd command rather than passing
it to the shell ?
You would think that one command would be the same as any other as
long as it is in the path or built into the shell.
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users._______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs