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

Re: enabling automatic PGP signing (was: expire-alist syntax)



At Tue, 04 May 2010 12:19:05 +0200, Randy Bush <randy@psg.com> wrote:
Subject: Re: enabling automatic PGP signing (was: expire-alist syntax)
> 
> > ;; NetBSD's ftp(1) "Does The Right Thing(tm)"!
> > (setq pgg-insert-url-program "ftp")
> > (setq pgg-insert-url-extra-arguments '("-o" "-"))
> 
> uh, for us poor unenlighteded users of other environments, do you
> have a more generic hack, or a clue as to what we need to find in
> our impoverished environments?
> 
> randy (who uses MaxOSX)

Hey, me too!  (though not normally with WL -- I run it (and most of my
emacs usage) via X11 on my main server, which runs NetBSD.)

So, anyway, you're in luck -- OSX includes the NetBSD version of ftp(1),
which you can tell most easily from the usage message showing that it
accepts ftp:// and http:// syntax parameters.

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.6.3
BuildVersion:   10D573
$ ftp -?
ftp: illegal option -- ?
usage: ftp [-46AadefginpRtvV] [-N netrc] [-o outfile] [-P port] [-q quittime]
           [-r retry] [-s srcaddr] [-T dir,max[,inc]]
           [[user@]host [port]] [host:path[/]] [file:///file]
           [ftp://[user[:pass]@]host[:port]/path[/]]
           [http://[user[:pass]@]host[:port]/path] [...]
       ftp -u URL file [...]


For others the necessary feature is a program that will fetch and spew
"raw" content to STDOUT when given a standard "URL" parameter, so I
guess wget and curl might work, though both of those programs scare me
with their excessive command-line options and major over-kill of
features.

-- 
						Greg A. Woods
						Planix, Inc.

<woods@planix.com>       +1 416 218 0099        http://www.planix.com/