die, was (Re: CGI email)
C. Abney
cabney at cyberpass.net
Sat Feb 26 07:05:03 CST 2000
~sdpm~
On Sat, 26 Feb 2000 mike at heckman.net wrote:
> The problem is that on opens that contain a pipe, the return value is
> the process id of the spawned shell. Therefore, testing the value of
> the open directly will always return true. What you need to do is
> check the status of the child return value after you've closed the
> piped open. The code should look something like:
Wasn't thinking I guess, (I new a fork() occurs for any system() call
with the redirection symbols.) I should have looked a little more
carefully, first. I found 'perldoc perlopentut', which explains it
all.
Thanks...
CA
--
Einstein himself said that God doesn't roll dice. But he was wrong. And
in fact, anyone who has played role-playing games knows that God
probably had to roll quite a few dice to come up with a character like
Einstein. -- Larry Wall C. Abney
~sdpm~
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
unsubscribe san-diego-pm-list
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm
mailing list