hsb957170(_at_)rccvax(_dot_)ait(_dot_)ac(_dot_)th wrote:
:0
* !^From +YOUR_USERNAME
* !^Subject:.*Re:
* !^FROM_DAEMON
* ^Subject:.*resume
| (formail -r ; cat resume.txt) | $SENDMAIL -oi -t
procmail: Executing " (formail -r ; cat resume.txt) | $SENDMAIL -oi -t"
stty: tcgetattr: Not a typewriter
Not a terminal
Cannot find terminal.
cat: cannot open resume.txt
I don't understand the last few lines of this log. What I need to do to
correct this problem. I am no expert on UNIX and just know the basics. BTW I
am using procmail on DEC Alpha Workstation (runnning OSF1).
Rajesh,
In the home directory of the user executing your .procmailrc, it *must*
exist "resume.txt" for the script to run correctly.
I recommend testing this way
:0
* test -f resume.txt
(.....your stuff here....)
Further, when you do a "cat" or "echo" (or wathever you run for
displaying at
standard output) it's wise to redirect the standard error to the std.
output
this way:
cat resume.txt 2>&1
Regards,
=========================
Alvaro Fdez. Lago
DBA & Sys. adm.
Hospital Xeral de Vigo (Spain)
=========================