AFS
view release on metacpan or search on metacpan
examples/v2/bos/exec view on Meta::CPAN
#!/usr/local/bin/perl
use blib;
use strict;
use warnings;
use AFS::BOS;
my ($server, $command, $cellname, $bos);
die "Usage: $0 server command [cell]\n" if $#ARGV < 1;
$server = shift;
$command = shift;
$cellname = shift;
if ($cellname) { $bos = AFS::BOS->new($server, 0, 0, $cellname); }
else { $bos = AFS::BOS->new($server); }
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n" and die;
my $ok = $bos->exec($command);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else { print "OK-Status: $ok \n"; }
$bos->DESTROY;
( run in 0.644 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )