bkkland
2nd August 2006, 20:34
How to create a job to be executed daily but only if the specified ASCII file exists in the directory?

I tried to use Add Shell Command to validate the existing of file before executing the import data session....without success :{

If the file name exists in the directory, then run the import data session. If not, do not execute the job.

Please advise...

csecgn
2nd August 2006, 22:31
OK, you are on unix.

Start a shellscript from the crontab

#!/usr/bin/ksh

if [ -e "<your file that has to exist>" ]
then
<start.baan.job>
fi

Sorry, but actual I can'not give the syntax for starting a baan job from a shellscript (no server available to take a look at).

hth

Regards
csecgn