Thread system und backticks
(18 answers)
Opened by suresh at 2011-12-14 14:08
Habe es jetzt entsprechend so angepasst:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 sub execute_cmd { my $cmd = shift; my $cmd_return; print "Details: $cmd\n"; $cmd_return = `$cmd`; if ( $? == 0 or die "Error: $?" ) { return $cmd_return; } } |