Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Best method to capture return code from system calls?

by bwelch (Curate)
on Aug 24, 2005 at 14:25 UTC ( #486200=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    system( "cp /analysis/fasta1.fa /analysis2/fasta1.fa" ) 
        or die print "Can't copy fasta file: $! \n";
  2. or download this
    use strict;
    &doSystemCommand(  "cp /analysis/fasta1.fa /analysis2/fasta1.fa"  );
            die "Failed executing [$systemCommand]\n"; 

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://486200]
Approved by willyyam
[marinersk]: LanX++ LOL Yes, that is another workaround. :-)
[LanX]: strangely you can't disable the XP nodelet
[LanX]: But you can use CSS to hide it
[LanX]: and disoplay the data permanently in your peronal nodelet
[marinersk]: I saw that you could post it on the Personal Nodelet, but you have to provide the content also. No way to auto-populate it. Not that this would solve my distraction problem...
[LanX]: there are template variables to "Auto-populate" it
[marinersk]: Yeah, someday I might become interested enough to poke around PerlMonks more internally. Most of the fancy stuff is way down on my to do list.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2017-05-29 14:23 GMT
Find Nodes?
    Voting Booth?