home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] wget passphrase

* Rafael Roquetto <rafaelroquetto [ at ] gmail [ dot ] com> [100331 13:32]:
> 2010/3/31 piper.guy1 <piper [ dot ] guy1 [ at ] gmail [ dot ] com>
> 
> > I need to use 'wget' to do a secure file download. It works great at
> > the command line. Unfortunately wget asks for the PEM passphrase.
> > However this will eventually be part of an embedded application so the
> > passphrase prompt can't happen.
> 
> How are you going to embed it? Are you going to fork() wget from the parent
> app? You can then just open a pipe to wget's stdin/stdou file descriptors
> and once you get the passphrase prompt, you can send the actual passphrase
> to wget.

I read it as meaning a script, but if you're using a fork/exec, then you
should consider libcurl instead.

-Bart

-- 
				WebSig: http://www.jukie.net/~bart/sig/

replies

references

message navigation