WARNING THIS IS A DUMB QUESTION: You have bben warned!

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by husne00 » Sat, 06 Jan 1996 04:00:00



How can you "type" something to the screen using command line ftp?  Is
it like get /dev/tty0 or so>

Thanks for reading this dumb question.

Jord.

 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by st.. » Sun, 07 Jan 1996 04:00:00


Quote:>How can you "type" something to the screen using command line ftp?  Is
>it like get /dev/tty0 or so>

simple. From standard ftp:

get filename |more

Make sure there is no space between "more" and the "|" (pipe) symbol.

From ncftp, a much better ftp client:

more filename

I hope this helps!

Sam Trenholme

--


 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by Arthur D. Jeriji » Sun, 07 Jan 1996 04:00:00




> : How can you "type" something to the screen using command line ftp?  Is
> : it like get /dev/tty0 or so>
> :
> : Thanks for reading this dumb question.
> You can get a remote file to the screen by using a "-", eg:
> ftp> get README -
> will type the remote file "README" to your screen.  Is that what you meant?

        Okay, MY turn for a stupid question...

        How do you pipe that output to a program, such as "less"?

Quote:> --
> Jon.

..........----------==========**********==========----------..........
                        Arthur Dikran Jerijian
         UCLA Undergraduate, Computer Science and Engineering
          World Wide Web: http://www.seas.ucla.edu/~jerijian
        Snail-Mail: PO Box 5103 / Sherman Oaks, CA 91413-5103
..........----------==========**********==========----------..........
 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by Alex Williams » Sun, 07 Jan 1996 04:00:00


Just do 'get FILENAME |more'
                        Alex

: How can you "type" something to the screen using command line ftp?  Is
: it like get /dev/tty0 or so>

: Thanks for reading this dumb question.

: Jord.

 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by Jon Evan » Sun, 07 Jan 1996 04:00:00


: How can you "type" something to the screen using command line ftp?  Is
: it like get /dev/tty0 or so>
:
: Thanks for reading this dumb question.

You can get a remote file to the screen by using a "-", eg:

ftp> get README -

will type the remote file "README" to your screen.  Is that what you meant?
--
Jon.

 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by James Mcphers » Sun, 07 Jan 1996 04:00:00


: : How can you "type" something to the screen using command line ftp?  Is
: : it like get /dev/tty0 or so>
: :
: : Thanks for reading this dumb question.
there aren't in general any dumb questions, only dumb answers. be cool ;)

: You can get a remote file to the screen by using a "-", eg:
: ftp> get README -
: will type the remote file "README" to your screen.  Is that what you meant?

you could also try the following method:

ftp> get README "|less

or even, to check out a tgz file:

ftp> get Win-951226.tgz "|zcat - |tar tvf -|less

see the pattern?
cheers,
jcm
--

Historian/Inter Library Loans


        Anglican Youth Ministries, Diocese of Brisbane
        http://www.uq.oz.au/~mljmcphe

 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by Mats Andtbac » Sun, 07 Jan 1996 04:00:00




[...]
>> ftp> get README -
>> will type the remote file "README" to your screen.  Is that what you meant?
>    Okay, MY turn for a stupid question...
>    How do you pipe that output to a program, such as "less"?

get README "|less" , as others have said already. But while we're at
it, let me put in a plug for ncftp - it really is a much better ftp
client than the bog-standard one. It's worth your while to switch to
it.
--
" ... this is the first day of my last days ... "     -- nin
 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by Robert Hell » Mon, 08 Jan 1996 04:00:00



  In a message on Fri, 5 Jan 1996 21:51:19 GMT, wrote :

h> How can you "type" something to the screen using command line ftp?  Is
h> it like get /dev/tty0 or so>
h>

ftp> get README -

Specifing "-" as the local file means use ftp's stdout.  I am not sure what
would happen if the file was a binary, but I would guess it would work -- it
could be used with a stript with the output piped to tar, etc.

h> Thanks for reading this dumb question.
h>
h> Jord.
h>                                                                

--
                                     \/

http://vis-www.cs.umass.edu/~heller  ||FidoNet:    1:321/153
http://netmar.com/mall/shops/heller  /\

 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by David Thomas Richard Giv » Tue, 09 Jan 1996 04:00:00




>ftp> get Win-951226.tgz "|zcat - |tar tvf -|less

If you're using GNU tar, the z option will automatically compress/decompress.

ftp> get Lose-951226.tgz "|tar xvzf - |less

--
-------------------------------------------------------------------------------
   Why do people surf the Information Superhighway? Won't they get run over?
               http://www-hons-cs.cs.st-andrews.ac.uk/~dg
              Sun-Earther David Daton Given  of Lochcarron

 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by The Red Ma » Thu, 11 Jan 1996 04:00:00


: : How can you "type" something to the screen using command line ftp?  Is
: : it like get /dev/tty0 or so>
: :
: : Thanks for reading this dumb question.

: You can get a remote file to the screen by using a "-", eg:

: ftp> get README -

Another idea is to try out "ncftp."
At the command line, try typing ncftp sometime.  To view a file with
ncftp all you have to to is:
ncftp> more READ*

                                Good Luck!
                                redmage

 
 
 

WARNING THIS IS A DUMB QUESTION: You have bben warned!

Post by MB. Tayl » Sat, 13 Jan 1996 04:00:00





>: : How can you "type" something to the screen using command line ftp?  Is
>: : it like get /dev/tty0 or so>
>: :
>: : Thanks for reading this dumb question.
>: You can get a remote file to the screen by using a "-", eg:
>: ftp> get README -
>Another idea is to try out "ncftp."
>At the command line, try typing ncftp sometime.  To view a file with
>ncftp all you have to to is:
>ncftp> more READ*

or
ftp> get README |more
- but note there must be no space between the | symbol and whatever
you're piping it to.

-----------------------------------------------------------------------
| Mark Beauchamp Taylor  -  physicist trapped in a chemist's body.    |

| Department of Chemistry, University of Bristol, UK                  -------
-----------------------------------------------------| ... It's the future! |
                                                     ------------------------