[pca] hiding SOA data from "ps"
Dražen Kačar
dave at fly.srk.fer.hr
Tue Dec 1 13:38:14 CET 2009
Martin Paul wrote:
> I've found an elegant workaround now - if $WGETRC or ~/.wgetrc exists,
> pca copies it to a temporary wgetrc file (mode 600) and appends the
> "header" options for the SOA data. Before running wget, $WGETRC is set
> to point at this temporary file, which is immediately removed after wget
> completes.
You might have a race condition here. It can be worked around safely, but
it's a pain. The simpler workaround is to set WGETRC to /dev/stdin and
then just write existing .wgetrc and the additional options to wget's
stdin. If that's simple enough in Perl.
--
.-. .-. Yes, I am an agent of Satan, but my duties are largely
(_ \ / _) ceremonial.
|
| dave at fly.srk.fer.hr
More information about the pca
mailing list