Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: closing sendmail error

by liz (Monsignor)
on Jun 07, 2004 at 21:54 UTC ( #362131=note: print w/replies, xml ) Need Help??


in reply to closing sendmail error

The pod for close() states:

If the file handle came from a piped open, "close" will additionally return false if one of the other system calls involved fails, or if the program exits with non-zero status. (If the only problem was that the program exited non-zero, $! will be set to 0.) Closing a pipe also waits for the process executing on the pipe to complete, in case you want to look at the output of the pipe afterwards, and implicitly puts the exit status value of that command into $?.

So maybe checking $? would give you more info?

From experience, getting errors on closing of sendmail pipes, usually indicates something is wrong with the queuing and/or sending of mail. I would also check the partitions on which queue or log files reside, and make sure there is room there.

Hope this helps.

Liz

Replies are listed 'Best First'.
Re^2: closing sendmail error
by BzBeauty (Sexton) on Jun 08, 2004 at 17:01 UTC
    How would I go about checking the partitions on which queue or log files reside? Also, I tried $? and got back 18176, whatever that means?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://362131]
help
Chatterbox?
[thao4]: Hi all, I am new in perl. I need do somthing in perl: exemple: - search a patern "CADRE 1.1 CPU" in one file.txt - incremente +30 lines from the line with the patern found - replace the patern "Model Regle" by "Heath Rule A" in this new line (30 line
[marto]: good morning all
[hippo]: Welcome. Tell me, have you read perlintro? That's a great place to start.
[thao4]: I seach to do that since a week but I can't found the answer in google. Thank for your help
[Eily]: hello thao4 (and hello all :D), you should [id://http:// perlmonks.org/ index.pl?node_id= 479#post|open a question on Seekers of Perl Wisdom], be sure to include whatever you have tried that didn't work, or only does the job partially
[thao4]: yes, I do a little perl since some years but not fréquently, I can correct the triggers in Clearcase of IBM, but write the code : no
[Eily]: meh, such good link ...
[Eily]: here
[Eily]: still not xD there

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2018-02-21 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (276 votes). Check out past polls.

    Notices?