peterr has asked for the wisdom of the Perl Monks concerning the following question:
I have been having problems with file locking (now sorted out) and file opens, see Perl script crashing at lockfile, and the only problem now is the script is stopping here
Considering the problems I have been having with using "open", should the above code be replaced byopen(SENDMAIL, '|/usr/sbin/sendmail -oi -t') or (unlink ($outfile), diehtml("Can't fork for sendmail: $!\n"));
sysopen(SENDMAIL, "|/usr/sbin/sendmail -oi -t", O_CREAT | O_EXCL | O_R +DWR, 0600) or (unlink ($outfile), diehtml("Can't fork for sendmail: $!\n"));
Peter
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sendmail problems
by tachyon (Chancellor) on Oct 03, 2003 at 03:41 UTC | |
by peterr (Scribe) on Oct 03, 2003 at 04:36 UTC | |
by idsfa (Vicar) on Oct 03, 2003 at 04:44 UTC | |
|
Re: Sendmail problems
by idsfa (Vicar) on Oct 03, 2003 at 03:26 UTC | |
by peterr (Scribe) on Oct 03, 2003 at 03:41 UTC | |
by idsfa (Vicar) on Oct 03, 2003 at 05:20 UTC | |
by peterr (Scribe) on Oct 03, 2003 at 06:03 UTC | |
by Jenda (Abbot) on Oct 03, 2003 at 15:06 UTC | |
by peterr (Scribe) on Oct 04, 2003 at 02:49 UTC | |
|
Re: Sendmail problems
by peterr (Scribe) on Oct 03, 2003 at 02:31 UTC | |
by tachyon (Chancellor) on Oct 03, 2003 at 04:07 UTC |