Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

System call + signals = bad return code?

by swkronenfeld (Hermit)
on Sep 28, 2007 at 21:59 UTC ( #641620=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    else {
        print( "system() return $retval\n" );
    }
    
  2. or download this
    test$ ./test.pl 
    Alarm triggered, making system call...
    system() retval = -1; $? = -1; $! = No such file or directory
    
  3. or download this
    System 1:
    $ perl -v
    ...
    
    test$ uname -a
    Linux hostname.removed 2.6.9-55.0.6.ELsmp #1 SMP Tue Sep 4 21:36:00 ED
    +T 2007 i686 unknown
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://641620]
Approved by bart
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2023-02-06 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?