I need help on crontab. I just wanted to run a 4gl program in crontab. I work on the unix system. I could able to run the unix commands and a shell program as well. But I couldn't run a 4ge file in crontab. I even tried inserting the 4ge program path in shell program also. But could not get the desired result.
I just did the following :
30 10 * * * /mnt/usr/bb/aa.4ge
If any mistake or suggestion, please do let me know.
I don't know 4ge programs but something to note, crontab does not execute your profile so you need to set PATH, LD_LIBRARY_PATH, etc. Create a shell script that will set your environment before starting the program.
. ./.profile # execute profile (dot space dot/.profile)
/mnt/usr/bb/aa.4ge # execute program
Then in cron you execute the script
30 10 * * * /mnt/usr/bb/aa.sh