Thread: FTP 'ls' one screen at a time? Or how to?

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    3

    Wink FTP 'ls' one screen at a time? Or how to?

    In Ftp, when you change to a big directory and use ls, the resulting long list of file names goes off the screen. How do you make it pause at a screenful, the way you can at the bash command interpreter shell? "ls | more" doesn't work. What does?
    Thanks for any help on this. Rainbow ((
    Last edited by rainbow; 02-22-2002 at 08:04 PM.

  2. #2
    Registered User alex's Avatar
    Join Date
    Sep 2001
    Posts
    132
    Most ftp programs allow you to do it this way:
    Code:
    ftp> ls . |more
    (the first argument of ls is the remote directory, which happens to be the current directory . and the second is the file that should receive the directory information, which happens to be a pipe to the command more) Note that there is no space between the pipe character (|) and the command name (more), but if you need spaces you can use quotes ("") or escaped spaces (\ ).

    Hope this helps...

    alex

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    3

    Thanks

    Thanks Alex, I gave it a try. It's working!!!
    Rainbow ((
    Last edited by rainbow; 02-23-2002 at 06:00 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. time synchronization problem
    By freeindy in forum C Programming
    Replies: 1
    Last Post: 04-19-2007, 06:25 AM
  2. What is the best way to record a process execution time?
    By hanash in forum Linux Programming
    Replies: 7
    Last Post: 03-15-2006, 07:17 AM
  3. Elevator Function confusion
    By applescruff in forum C++ Programming
    Replies: 5
    Last Post: 12-16-2004, 10:14 AM
  4. Military Time Functions
    By BB18 in forum C Programming
    Replies: 6
    Last Post: 10-10-2004, 01:57 PM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM