This discussion is archived
6 Replies Latest reply: Oct 5, 2012 3:51 AM by rukbat RSS

Reg: Cron

948062 Newbie
Currently Being Moderated
Hi,

i have to set the cronjob for the path sunday at 2: 30.

on the server bys296d001.

what needs to be set at crontab -e.

30 02 * * 0 . /apps2/wbcpat/load/run_re_pi_dp_proc/run_re_lpi_dp_proc.sh start &

i set the cron it's running on every sunday getting mail also.. but automated mail is coming with error path not found.
i checked tht path is available in the server bys296d001. and in the same server i created the crontab
  • 1. Re: Reg: Cron
    Dude! Guru
    Currently Being Moderated
    Please provide the complete error message as it appears and details of your analysis or troubleshooting so far.
  • 2. Re: Reg: Cron
    948062 Newbie
    Currently Being Moderated
    it's Giving Error $Dir2 metadataserver.sh start2 not found
  • 3. Re: Reg: Cron
    Dude! Guru
    Currently Being Moderated
    Based on the information you provided there is no connection between the error and your cron task. It is also not obvious what product you are using. Please mind the forum etiquette. My best guess is that you need to define the Dir2 variable and possibly other environment variables for the crontask to work. Cron does not process the login profile of the user and only knows about /bin and /usr/bin.
  • 4. Re: Reg: Cron
    948062 Newbie
    Currently Being Moderated
    hi dude,


    i'am getting the error like:
    . /apps2/wbcpat/load/run_re_pi_dp_proc/run_re_lpi_dp_proc.sh no file and dir line 149
    [+1 done]
    $DIR/$Script start 2
  • 5. Re: Reg: Cron
    Dude! Guru
    Currently Being Moderated
    Sorry, I'm afraid you will need to provide more feedback and detailed information. The error message on it's own is not useful. Please see my previous reply.
  • 6. Re: Reg: Cron
    rukbat Guru Moderator
    Currently Being Moderated
    Multiple cross-posts.
    error
    User posting history shows this to be a persistent poor etiquette habit.
    All to be locked as thery're found.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points