There's been various attempts at making "easy access to zope from a unix shell" over the years, here's another one. I recently noticed that zsh (www.zsh.org), a ksh/csh/bash replacement, has grown an inbuilt ftp client (yes, this is a bit nuts) - if you've got zsh installed, man zshzftpsys. As it is today, it doesn't support ftp servers on non-standard ports, but this was a 10-minute hack to add it in. Here's a bit of a demo burswood% autoload -U zfinit ; zfinit burswood% zfopen devhost1:8021 User: anthony Password on devhost1:8021: burswood% zfls Control_Panel Examples MailHost acl_users admin_tools browser_id_manager burswood% zfcd Control_Panel devhost1.off.ekorp.com:/Control_Panel burswood% zfls .. CallProfiler Database DavLocks DebugInfo Products Versions burswood% zfcd / devhost1.off.ekorp.com:/ burswood% zfls -l standard* -rw-rw---- 1 Zope Zope 729 Aug 13 04:25 standard_error_message -rw-rw---- 1 ottrey Zope 1807 Aug 7 04:57 standard_error_message_body -rw-rw---- 1 rjones Zope 214 Feb 12 2002 standard_error_message_test -rw-rw---- 1 ottrey Zope 1013 Nov 22 05:36 standard_error_sendmail -rw-rw---- 1 Zope Zope 139 Nov 16 1999 standard_html_footer -rw-rw---- 1 Zope Zope 194 Nov 19 1999 standard_html_header -rw-rw---- 1 Sysproc Zope 282 Jul 26 04:26 standard_template.pt All very strange and twisted. Anthony
Anthony Baxter wrote
There's been various attempts at making "easy access to zope from a unix shell" over the years, here's another one. I recently noticed that zsh (www.zsh.org), a ksh/csh/bash replacement, has grown an inbuilt ftp client (yes, this is a bit nuts) - if you've got zsh installed, man zshzftpsys. As it is today, it doesn't support ftp servers on non-standard ports, but this was a 10-minute hack to add it in.
This patch is on sourceforge, fwiw: https://sourceforge.net/tracker/?func=detail&aid=664329&group_id=4068&atid=3... Anthony -- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.
Anthony Baxter wrote:
Anthony Baxter wrote
There's been various attempts at making "easy access to zope from a unix shell" over the years, here's another one. I recently noticed that zsh (www.zsh.org), a ksh/csh/bash replacement, has grown an inbuilt ftp client (yes, this is a bit nuts) - if you've got zsh installed, man zshzftpsys. As it is today, it doesn't support ftp servers on non-standard ports, but this was a 10-minute hack to add it in.
This patch is on sourceforge, fwiw: https://sourceforge.net/tracker/?func=detail&aid=664329&group_id=4068&atid=3...
Anthony
If you are using linux, maybe this would be another (cleaner?) option, independen of the shell: http://lufs.sourceforge.net/lufs/intro.html """LUFS is enabling you to mount into your file hierarchy a remote computer's filesystem, which is accessible by various means (ftp, ssh, etc.). Then, the access to the remote files will be completely network transparent. In other words, you'll be able to read/modify remote files as if they were local, watch movies/listen to MP3s from FTP/SSH servers without copying them locally. """ Haven't tried it, but looks promising (and working). cheers, oliver
Oliver Bleutgen wrote If you are using linux, maybe this would be another (cleaner?) option, independen of the shell:
http://lufs.sourceforge.net/lufs/intro.html
"""LUFS is enabling you to mount into your file hierarchy a remote computer's filesystem, which is accessible by various means (ftp, ssh, etc.). Then, the access to the remote files will be completely network transparent. In other words, you'll be able to read/modify remote files as if they were local, watch movies/listen to MP3s from FTP/SSH servers without copying them locally. """
I've had bad experiences in the past with things like this - ftpfs, davfs, and the like. Because it's "not really" a filesystem as such, you end up finding out about all sorts of things in your O/S that unconditionally walk filesystems. It's a great way to lock up computers. Since I stopped trying to use network-based filesystems on my machines (let the applications do it, instead) I've found that my system reliability is a scary amount better. -- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.
On Wed, Jan 08, 2003 at 10:50:38PM +1100, Anthony Baxter wrote:
There's been various attempts at making "easy access to zope from a unix shell" over the years, here's another one. I recently noticed that zsh (www.zsh.org), a ksh/csh/bash replacement, has grown an inbuilt ftp client (yes, this is a bit nuts) - if you've got zsh installed, man zshzftpsys.
That IS a bit nuts :) What have you been able to actually do with it? Can you run local *nix utilities on the zope stuff? find, grep, vi / emacs, etc? -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's CHICK OF ATLANTIS! (courtesy of isometric.spaceninja.com)
that *would* be nice - how I miss regexps in Zopeworld... Paul Winkler wrote:
On Wed, Jan 08, 2003 at 10:50:38PM +1100, Anthony Baxter wrote:
There's been various attempts at making "easy access to zope from a unix shell" over the years, here's another one. I recently noticed that zsh (www.zsh.org), a ksh/csh/bash replacement, has grown an inbuilt ftp client (yes, this is a bit nuts) - if you've got zsh installed, man zshzftpsys.
That IS a bit nuts :) What have you been able to actually do with it? Can you run local *nix utilities on the zope stuff? find, grep, vi / emacs, etc?
On Wed, Jan 08, 2003 at 03:20:18PM +0000, Ben Avery wrote:
that *would* be nice - how I miss regexps in Zopeworld...
Use ZShell, available from http://www.librelogiciel.com/software its grep command is recursive, accepts regexps and can replace too. its find command allows you to apply commands to Zope objects recursively. its online help is a good friend. hth Jerome Alet
On Wed, Jan 08, 2003 at 03:20:18PM +0000, Ben Avery wrote:
that *would* be nice - how I miss regexps in Zopeworld...
It's not as convenient as a real interactive shell (e.g. no pipes!), but ZShell does allow you to recursively grep for stuff, and even do find-and-replace. That's what I use at the moment for this kind of thing. --PW -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's ASTRO- THING BICLOPS! (courtesy of isometric.spaceninja.com)
Paul Winkler wrote:
It's not as convenient as a real interactive shell (e.g. no pipes!), but ZShell does allow you to recursively grep for stuff, and even do find-and-replace. That's what I use at the moment for this kind of thing.
Just extend the ZShellCLI which gives you a python prompt and fires the request over to ZShell with xmlrpc. Or store your objects on the file system ;) -- Andy McKay
On Mon, Jan 13, 2003 at 10:00:20AM -0800, Andy McKay wrote:
Paul Winkler wrote:
It's not as convenient as a real interactive shell (e.g. no pipes!), but ZShell does allow you to recursively grep for stuff, and even do find-and-replace. That's what I use at the moment for this kind of thing.
Just extend the ZShellCLI which gives you a python prompt and fires the request over to ZShell with xmlrpc. Or store your objects on the file system ;)
Alternatively you can wait until I've finished to port ZShell to a ZShellScripts interpreter, and then each method will be available directly through xml-rpc in a "less-hackish" way than with ZShellCLI. (any help is welcome, see http://www.librelogiciel.com/software/ and download the CVS version from subversions.gnu.org) bye, Jerome Alet
participants (6)
-
Andy McKay -
Anthony Baxter -
Ben Avery -
Jerome Alet -
Oliver Bleutgen -
Paul Winkler