procmail
[Top] [All Lists]

Re: Formail Script Error

2000-01-26 11:47:34
On Wed, 26 Jan 2000 10:59:26 -0700, SoloCDM <deedsmis(_at_)ris(_dot_)net> wrote:
I was having success with the attached script until I made the final
changes and started getting errors. At first I thought the errors
started at the first "-A" option, but I commented out all lines
starting with "-A" and continued to get the errors stating there
wasn't a command found in the default directory for the script, even
though it executed. What's wrong?


You have a "space" at the end of the third "-I" line after the continuation 
character "\".  This breaks the continuation.  Just delete that space.

Mark



On Wed, 26 Jan 2000 10:59:26 -0700, SoloCDM <deedsmis(_at_)ris(_dot_)net> wrote:
$MUBIN/formail -I "From: <root(_at_)$($MTBIN/hostname -f)> (Cron Daemon 
Manually)" \
-I "Subject: Manual Cron <root(_at_)cdm01> $METCC/sav_backup" \
-I "To: <root(_at_)$($MTBIN/hostname -f)> (Administrator)" | \ 
#################################### EXTRA SPACE HERE ----^
-A "X-Cron-Env: <SHELL=$SHELL>" \
-A "X-Cron-Env: <PATH=$PATH>" \
-A "X-Cron-Env: <MAILTO=$MAILTO>" \
-A "X-Cron-Env: <HOME=$HOME>" \
-A "X-Cron-Env: <LOGNAME=$LOGNAME>" | \
$MSBIN/sendmail -FCronDaemonManually -odi -oem -or0s root



<Prev in Thread] Current Thread [Next in Thread>