Results 1 to 3 of 3

Thread: crontab help

  1. #1
    Join Date
    Jul 2005

    Unanswered: crontab help


    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.

    Thanks in advance..

  2. #2
    Join Date
    May 2005
    South Africa
    Provided Answers: 1
    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/

  3. #3
    Join Date
    Jul 2005
    Mr. Pdreyer,

    Thank you very much for your reply. I tried it and worked. U have really helped me a lot. Thank you again...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts