view files in ftp / ncftp?

solrac

Mac Ninja
If not for Fetch 4.1, terminal ftp or ncftp would be the only usable FTP program on OS X.

But, sometims I like using terminal anyway. What would rock is if there's a way to view text files IN the terminal throught the ftp?

I tried help showall and can't see any fitting command?

example:
ftp
open www.whatever.com
user: username
password
ls
(shows files, one of them is script.php)

would there be a way to type something like

view script.php, and just print the text of it in the terminal???

thanks,
-solrac-
 
This is where the fun of Unix comes into play. If you want to view the file script.php while staying in ftp, use

get script.php "|more"

This will cause ftp to pass it to more so you can scroll through it, then when you get to the end, the ftp prompt will return.
 
Back
Top