Networking Forums

Networking Forums > Computer Networking > Linux Networking > Screen-paging in Ftp

Reply
Thread Tools Display Modes

Screen-paging in Ftp

 
 
fbalbert@gmail.com
Guest
Posts: n/a

 
      10-04-2006, 07:59 AM
Hello, I'm trying to pause the screen when I'm using the default ftp on
my schools linux client to connect to a linux server but ls | more
doesn't work. When ever I do ls | more it comes up with this: output to
local-file: more? Does anyone have any suggestions? I've searched
google and other search engines with no answers on how to "pause" the
screen. Thanks

Cream

 
Reply With Quote
 
 
 
 
Floyd L. Davidson
Guest
Posts: n/a

 
      10-04-2006, 08:20 AM
(E-Mail Removed) wrote:
>Hello, I'm trying to pause the screen when I'm using the default ftp on
>my schools linux client to connect to a linux server but ls | more
>doesn't work. When ever I do ls | more it comes up with this: output to
>local-file: more? Does anyone have any suggestions? I've searched
>google and other search engines with no answers on how to "pause" the
>screen. Thanks


A couple of solutions. One is to use ncftp, which has a nicer
interface to the ftp protocol.

The other is to change your ftp command just slightly:

ls * |more

And then it will see the last argument as a pipe to more, rather
than as a filename. Note that you must have two arguments, so
the * is necessary.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
Josh Diakun
Guest
Posts: n/a

 
      10-04-2006, 02:00 PM

(E-Mail Removed) wrote:
> Hello, I'm trying to pause the screen when I'm using the default ftp on
> my schools linux client to connect to a linux server but ls | more
> doesn't work. When ever I do ls | more it comes up with this: output to
> local-file: more? Does anyone have any suggestions? I've searched
> google and other search engines with no answers on how to "pause" the
> screen. Thanks
>
> Cream


Your just missing one thing here with your command...quotes.

To output the listing to `less` or `more` you have to use quotes before
and after the pipe like so:

ls * "|more"

then that will work as you need it to.


Josh D.

 
Reply With Quote
 
Floyd L. Davidson
Guest
Posts: n/a

 
      10-04-2006, 10:12 PM
"Josh Diakun" <(E-Mail Removed)> wrote:
>(E-Mail Removed) wrote:
>> Hello, I'm trying to pause the screen when I'm using the default ftp on
>> my schools linux client to connect to a linux server but ls | more
>> doesn't work. When ever I do ls | more it comes up with this: output to
>> local-file: more? Does anyone have any suggestions? I've searched
>> google and other search engines with no answers on how to "pause" the
>> screen. Thanks
>>
>> Cream

>
>Your just missing one thing here with your command...quotes.
>
>To output the listing to `less` or `more` you have to use quotes before
>and after the pipe like so:
>
>ls * "|more"
>
>then that will work as you need it to.


The quotes are unnecessary, and it will work just fine without them.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
Josh Diakun
Guest
Posts: n/a

 
      10-05-2006, 03:58 AM

Floyd L. Davidson wrote:
> "Josh Diakun" <(E-Mail Removed)> wrote:
> >(E-Mail Removed) wrote:
> >> Hello, I'm trying to pause the screen when I'm using the default ftp on
> >> my schools linux client to connect to a linux server but ls | more
> >> doesn't work. When ever I do ls | more it comes up with this: output to
> >> local-file: more? Does anyone have any suggestions? I've searched
> >> google and other search engines with no answers on how to "pause" the
> >> screen. Thanks
> >>
> >> Cream

> >
> >Your just missing one thing here with your command...quotes.
> >
> >To output the listing to `less` or `more` you have to use quotes before
> >and after the pipe like so:
> >
> >ls * "|more"
> >
> >then that will work as you need it to.

>
> The quotes are unnecessary, and it will work just fine without them.
>
> --
> Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
> Ukpeagvik (Barrow, Alaska) (E-Mail Removed)


The quotes are needed to protect against if the user happens to type a
space between the pipe and the file viewer. Because without the quotes
ls * | more does not work, it rather tries to pipe the output of ls *
to a file. Although, you are right, the quotes are not needed when
there is no space, like so: ls * |more but the asterisk, or a period,
is needed to indicate what to list.


All the best,

Josh D.

 
Reply With Quote
 
Floyd L. Davidson
Guest
Posts: n/a

 
      10-05-2006, 07:49 AM
"Josh Diakun" <(E-Mail Removed)> wrote:
>Floyd L. Davidson wrote:
>> "Josh Diakun" <(E-Mail Removed)> wrote:
>> >(E-Mail Removed) wrote:
>> >> my schools linux client to connect to a linux server but ls | more
>> >> doesn't work. When ever I do ls | more it comes up with this: output to


....

>> >Your just missing one thing here with your command...quotes.
>> >
>> >To output the listing to `less` or `more` you have to use quotes before
>> >and after the pipe like so:
>> >
>> >ls * "|more"
>> >
>> >then that will work as you need it to.

>>
>> The quotes are unnecessary, and it will work just fine without them.

>
>The quotes are needed to protect against if the user happens to type a
>space between the pipe and the file viewer.


As you can plainly see, the quotes are not needed because there
is *no* space in the second argument to the ls command. The
statement that all the original "ls | more" needed was quotes is
absolutely not correct.

It is true that if you do want to use a space as part of the
command, that is the way to do it. But that was not the
question nor was it part of the stated answer given.

>Because without the quotes
>ls * | more does not work, it rather tries to pipe the output of ls *
>to a file.


No, it does not pipe anything; which is exactly the problem. It
just accepts the last argument as a filename.

>Although, you are right, the quotes are not needed when
>there is no space, like so: ls * |more but the asterisk, or a period,
>is needed to indicate what to list.


That is of course true whether there are quotes or not. but the
reason is because ls requires either no args, or more than one.
It will not work with only one arg.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FOAK: Paging the TennisElbow-isti Burton Bradstock Broadband 3 05-28-2007 08:14 AM
screen saver from log on screen Hal Teach Windows Networking 4 01-11-2006 12:58 AM
Paging Doug Sherman... =?Utf-8?B?bGVvag==?= Windows Networking 1 02-03-2005 02:17 AM
Confirmed firmware bug: MN-700 - Paging Neel M. Andy Broadband Hardware 11 01-17-2005 02:53 AM
screen gone spadger Windows Networking 12 09-07-2004 10:14 PM



1 2 3 4 5 6 7 8 9 10 11