in reply to Sendmail .forward + perl
2) What user is the script running as? Does it have the correct permissions?
3) With that in mind, you should be checking the return of open (always check the returns of system calls!):
Is the file ever created, even? Is anything ever written to it?open (MAIL, ">/home/brian/mail.txt") or die "Can't open: $!"; print MAIL "\n"; while (<STDIN>) {print MAIL $_} close MAIL or die "Can't close: $!"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Sendmail .forward + perl
by setantae (Scribe) on Mar 25, 2000 at 01:18 UTC |