smeserver-affa/root/etc/affa/scripts/prescript-sample.pl

15 lines
287 B
Perl
Raw Permalink Normal View History

#!/usr/bin/perl -w
use strict;
(my $hostname, my $job, my $sshCmd) = @ARGV;
# output is written to the log
print "preJobCommand script prescript-sample.pl\n";
print "hostname=$hostname\n";
print "job=$job\n";
print "sshCmd=$sshCmd\n";
system("$sshCmd $hostname ls -l /var");
exit 0;