hi...
i have the following submit file, with the test executable shell script. it
appears that condor runs the script, although i can't see any output. (i can
see output from the test shell script if i run it manually by hand from the
cmdline)
the submit/shell/test perl script are all in the same dir.
i'm trying to look through the log files to see if i can determine what's
happened. any thoughts/comments would be greatly appreciated.
thanks
-bruce
[test@lserver2 data]$ cat stest2.sub
Executable = condort.sh
Universe = vanilla
#Output = hello.out
Error = stest.err
Log = stest.log
should_transfer_files=yes
when_to_transfer_output = ON_EXIT
#TRANSFER_FILES = ALWAYS
#Requirements = (OpSys == "LINUX")
#initialdir = /college/data/
#transfer_input_files = stest.pl
Queue 1
=======================================
[test@lserver2 data]$ cat condort.sh
#!/usr/bin/bash
#condor test script
echo "foo";
i=100;
for ((n=1; n<$i; n++));
do
echo $n;
./stest.pl $n;
done
======================================
[test@lserver2 data]$ cat stest.pl
#!/usr/bin/perl
#############################################################
#
# stest.pl. test perl app for condor
#
#
# simply opens an output file in the '/college/data' dir
#
#############################################################
my $tfile = "/college/data/stest";
my $date = `date -u +%s`;
$argc = @ARGV;
print "testing\n";
printf ("argc = %d\n",$argc);
print @ARGV[1];
print @ARGV[0];
print "\n\n";
print $ARGV[0];
printf ("argv(0) = %s\n",$ARGV[0]);
printf ("argv(1) = %s\n",$ARGV[1]);
print "fffffff\n";
my ($i, $x);
$tfile = $tfile."_".$ARGV[0]."_".$date.".txt";
open(F, ">$tfile");
print F "test 1\n";
print F "test 2\n";
print F "test 3\n";
print F "test 4\n";
print F "test 5\n";
print F "test 6\n";
close(F);
die;
for($i=0;$i<2000;$i++)
{
for($x=0;$x<500;$x++)
{
print $i*$x. "\n";
}
}
print "done";
die;
==================================================
<<attachment: winmail.dat>>