William Voyek wrote: > Hi all, > > First of all I'm not a programmer and am completely new perl so please > be gentle with me. My problem is that I'm trying to use the script > below to insert some text into multiple files. The files are control > files for qmail, the MTA we use. The text that I want to insert will > call a virus scanner to scan messages before they are delivered to a > users mailbox. The default text to be inserted is: > >> /usr/local/bin/odeiavir > > There is a problem with this text though. With the qmail setup I have > it doesn't work completely. The message is scanned and if a virus is > found it's deleted but the notification message that's supposed to be > sent to the user is never delivered because the email address gets > mangled in the process. But, there is a fix for this. I simply need > to insert a switch (-r [EMAIL PROTECTED]) at the end of the call to the virus > scanner. So, the text I need inserted is: > >> /usr/local/bin/odeiavir -r [EMAIL PROTECTED] > Try adding \ as [EMAIL PROTECTED] This escapes those characters otherwise it tries to expand $EXT and possibly @$HOST. With the escaping it will write that whole line to the file as is.
Wags ;) ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]