How to qsub idl job on cluster? -
i'd use qsub
submit idl
job. there errors. script follows:
##################################### #$ -s /bin/bash ##$ -j y #$ -cwd #$ -m e ### pe size must multiple of 12! ###$ -pe impi4 24 ### wallclock 48 hours #$ -l h_rt=48:00:00 #$ -m emailaddress #$ -n 'name' #$ -o 'name' #$ -e 'name' source ~/.bashrc cd /mydirectory echo "start time:" date idl -e .com file1 -e file2 #####################################
i have source .bashrc
first make library in idl
work(for reason must in way). need first compile file1
make file2
work smoothly, ie. in normal terminal command line, need .com file1
carriage return file2
no run
or anything. here doesn't work, error says
idl command not found -e command not found
why? tried add \r
, !c
behand file1
, seemed not working , delete -e
before file2
, still not. use suse
os.
thank @mgalloy 's advice, said
pro program .compile file1 file2 end
and got errors
pro program ^ % programs can't compiled single statement mode. at: /directory/program.pro, line 1 % compiled module: xxx several compiled steps % attempt call undefined procedure: 'file2'. % execution halted at: $main$ end ^ % syntax error.
you have 2 problems. first, idl not being found. put full path it, e.g.,
/usr/local/exelis/idl/bin/idl
secondly, , maybe thirdly, can't have 2 "-e" arguments , need quotes around command multiple words. so, put idl commands in file, my_program.pro:
.compile file1 file2
and call this:
/usr/local/exelis/idl/bin/idl /full/path/to/my_program.pro
note: no "-e" in above, running commands in batch file, not executing idl statement.
Comments
Post a Comment