On Nov 13, 2003, at 5:26 AM, [EMAIL PROTECTED] wrote:

[snip - problem description]

If the server successfully performed the command, ctlinnd will exit with a
status of zero and print the reply on standard input. If the server could
not perform the command (for example, it was told to remove a newsgroup
that does not exist), it will direct ctlinnd to exit with a status of one.


It's not clear to me how I could retrieve the status code. I would also
like to know whether the way I use system() is right or if there is a
better way to do what I'm tryining to do.

I don't do a lot of shelling out, but the documentation for the system() call seems to explain how to get the return value pretty well. You can read that by entering:


perldoc -f system

Hope that helps.

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to