1753389 Members
7323 Online
108792 Solutions
New Discussion юеВ

FTP LS command

 
SOLVED
Go to solution
Jeffrey W. Stewart
Frequent Advisor

FTP LS command

Why does the command ls -ltr |more not work when I FTP (windows 98) to the hp3070? The commad ls -ltr works. Thanks.
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: FTP LS command

When using ftp, you are not using the real system commands. You are using commands internal to FTP. If you invoke ftp and then type 'help' you will see a list of commands that are supported. Most do not support arguments. Your main options for listing files are ls and dir.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: FTP LS command

Hi Jeffrey,

Because you are in ftp and not within a shell of command interpreter. The '|' within ftp is not interpreted the same way.

You can, however, within ftp
ls -ltr myfile (this sends the output to 'myfile' on your PC)
then
!more myfile

Regards, Clay

If it ain't broke, I can fix that.
MANOJ SRIVASTAVA
Honored Contributor

Re: FTP LS command

Hi Jeffery

FTP uses its own set of commands , which you can see by typing help . TO know exaclty what is going on the other end I generally run the command on the remote system and direct the same to a file and store it in my local directory say /tmp . View that file to know exaclty what is there in terms of the permissions sizes aqnd owners.

Help FTP will clear your picture .

Manoj Srivastava
Jeffrey W. Stewart
Frequent Advisor

Re: FTP LS command

Solution in thread