[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ftp filesystem



On Wed, Apr 11, 2001 at 02:14:42PM -0400, Steve M. Robbins wrote:
> Suppose I'm at home, and want to get at my files from a remote site
> that doesn't export filesystems to me.  I have a shell account there,
> so I can use ftp (or scp), but what I'd really prefer is a filesystem
> view, e.g:

zsh has a really nifty zftp module, that allows something similar:
(i also use the zf functions, for easier zftp usase)

[jaqque@osiris:~]% zmodload zsh/zftp
[jaqque@osiris:~]% autoload -U zfinit
[jaqque@osiris:~]% zfinit
note: you can put those in a .zshrc to have them automatically enabled)
[jaqque@osiris:~]% zfanon ftp.debian.org
Using jaqque@osiris.sbih.org as anonymous FTP password.
--snip of motd--
[jaqque@osiris:~]% zfls
lost+found
pub
debian
serverfull.msg
welcome.msg
incoming
ls-lR
ls-lR.gz
Transfer complete.
[jaqque@osiris:~]% zfcd debian 
ftp.debian.org:/pub/mirrors/debian
[jaqque@osiris:~]% zfls -l l*
-rw-r--r--   1 debian   debian    9114932 Apr 10 19:25 ls-lR
-rw-rw-r--   1 debian   debian    1304779 Apr 10 19:25 ls-lR.gz
-rw-r--r--   1 debian   debian     103893 Apr 10 19:25 ls-lR.patch.gz
Transfer complete.
[jaqque@osiris:~]% zfget lsTransfer complete.
-lR.patch.gz 
ls-lR.patch.gz (103893 bytes): G
                                                                         : 100% 
note: the ``Transfer complete.'' above is where i hit [tab] for
	expansions, and the bar above is an inverse video progress bar.
	you can turn either/both off if it bugs you.

-john

zsh: it's not just a shell, it's an ftp client.



Reply to: