gilforum
12th December 2002, 19:14
I made a job which executes a session in a interval of five minutes.
The job has the status "In Queue".
In unix I ran the rc.starjobdm.
The job runs once and after the status changes to "Running".
I want the job run every five minutes.
Thanks,
hsteenwi
13th December 2002, 13:42
Try to run the rc.startjob from the Unix-crontab every 5 minutes. But keep in mind the settings in the job within Baan (see attchment). In any case, when running a Baan-job from the crontab, the status of the job must be "Free".
Hope this helps.
Henk.
gilforum
16th December 2002, 17:45
I configured the crontab like:
* * * * * /baanIVc4/bse/etc/rc.startjob 101 1
It is correct?
Francesco
16th December 2002, 19:34
I am not sure what that will do, but basically you are telling cron to run the job continuously.
your cronfile line would have to look like this:
0,5,10,15,20,25,30,35,40,45,50,55 7-19 * * 1-5 /baanIVc4/bse/etc/rc.startjob 101 1
Provided you don't want to run the job on weekends or during the night (7-19 indicates the hours of the day, 1-5 are the days of the month).
This will execute the job named 101 and dump the output in jobok file named "1" in the user's home directory.
(you really gotta come up with better file names) ;)
Make sure that the cron user points to the right company and make sure that $BSE, $BSE_TMP and $PATH are specified in the rc.crontab script.
gilforum
17th December 2002, 13:43
The problem was the device "WIN", in the session ttaad5101m000.
I changed to device ASCIF and it works.
Thanks.