[PLUG] Scripting
Eric Wilhelm
ewilhelm at sbcglobal.net
Thu Apr 14 17:04:52 UTC 2005
# The following was supposedly scribed by
# Rogan Creswick
# on Wednesday 13 April 2005 12:27 pm:
> system(
> "grepmail -hv \"\\[SPAM\\]\" /data4/mail/correspondance$i" .
> "> /data2/mail.back/$i"
> );
>The nested escape characters probably need tweaking,
A good indicator that you shouldn't be using system() for this. If you
need to capture the output or use a pipe/redirect on anything involving
filenames, you would be much better served with IPC::Run.
--Eric
--
Introducing change is like pulling off a bandage: the pain is a memory
almost as soon as you feel it.
-- Paul Graham
---------------------------------------------
http://scratchcomputing.com
---------------------------------------------
More information about the PLUG
mailing list