PDA

View Full Version : [LF95 trial vs. full version in Linux]: Batch jobs/redirecting output


ja4
02-03-2004, 06:42 PM
I am using the trial lf95 version L6.20c on Fedora Core 1.0. The trial banner is displayed upon execution and the user is required to press enter before the program will run. This is preventing me from running batch jobs with the at daemon like so:

at -f run.bat now

where the file run.bat looks like this:
-----------
./a.out >& log.dat
cd ../OTHERDIRECTORY
./a.out >& log.dat
etc...
-----

Jobs also seem to be prohibited from running in the background i.e.;

./a.out &

requires a press of the enter key, at which point the program stops.



I need to know if this behavior exists in the full version as well (not just the enter key/banner behavior but being able to batch/background executable jobs). If so, I need not purchase it.

thanks

tzeis
02-03-2004, 10:51 PM
Have you tried piping from an input file that only contains a carriage return?

./a.out < cr.dat >& log.dat

It seems like that should allow the program to proceed both as batch and in the background. If you buy the compiler these problems go away. ;)

ja4
02-03-2004, 10:54 PM
Thanks for the suggestion. any tips on how to put a carriage return into a file?

So you are telling me that if I buy the retail version I will be able to background/batch jobs, and this problem is only due to the key-press requirement, right?

tzeis
02-03-2004, 10:58 PM
That is correct, the batch and background operation is being held up by the carriage return requirement, the release version would not have this problem.
I used GVIM to create a file with a carriage return. You could also use Fortran to do the same thing:

write(*,*)
end

./a.out > cr.dat

ja4
02-03-2004, 11:09 PM
Thanks a lot! that worked great, I may buy the compiler after all.