lucarey has asked for the wisdom of the Perl Monks concerning the following question:
$status will be 0 unless the remote machine is down. I was wondering if there was a way to get the return status of the "mt -f" command. Is there a better way/module for doing this?#!/usr/local/bin/perl $machine=$ARGV[0]; %runt=( "local" , "yes", "tape" , "/dev/nrmt0h", "dev1" , "/dev/rz0a", "dev2" , "/dev/rz0g", "dev3" , "/dev/vol/rootdg/us_striped", "dump", "/usr/sbin/dump 5bdsuf 64 61000 6100"); $status=system("rsh $machine mt -f $$machine{tape} online");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exit status of a remote program
by btrott (Parson) on Jun 17, 2001 at 06:28 UTC | |
|
Re: exit status of a remote program
by kschwab (Vicar) on Jun 17, 2001 at 05:02 UTC | |
|
Re: exit status of a remote program
by TeKk9 (Scribe) on Jun 17, 2001 at 05:09 UTC |