Re: [Ssh-sftp-perl-users] Net::SSH::perl to chroot enviro
Brought to you by:
dbrobins
From: John F. <joh...@zn...> - 2004-06-03 00:16:38
|
These worked, and the shell is bash... my $cmd1 = "man ls " ; my $cmd2 = "echo " . '$SHELL' ; my $cmd3 = "cat /tmp/autobuild.log" ; my $cmd1 = "help" ; my $cmd2 = "dirs " ; my $cmd3 = "test" ; my $cmd1 = "xxxxx" ; my $cmd2 = "cd / " ; my $cmd3 = "pwd" ; Dave Rolsky wrote on 6/2/2004 4:59 PM: >On Wed, 2 Jun 2004, Dave Rolsky wrote: > > > >>On Wed, 2 Jun 2004, John Fisher wrote: >> >> >> >>>>Do other commands work? Have you tried something like just "ls"? >>>> >>>> >>>> >>>yes >>> ls pwd cd /somepath all work, and they work as succesive >>>commands >>>$ssh->cmd(somecommand)..... >>>$ssh->cmd(someothercommand)..... >>>$ssh->cmd(somethirdcommand)..... >>> >>> >>How about some other shell command (not an executable)? I'm guessing that >>when you log in via SSH without a terminal, you don't actually get a >>shell, but that's just a guess. >> >> >> ---------------------------------------------------- John P. Fisher at ZNYX Networks 805 683 1488 x 3245 joh...@zn... |