This discussion is archived
5 Replies Latest reply: Oct 5, 2012 2:21 AM by rukbat RSS

error

948062 Newbie
Currently Being Moderated
Hi


i have made a crontab in server bys296d001

crontab -e

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

35 02 * * 0 . /apps2/wbcpat/load/run_re_pi_sp_proc/run_re_pi_sp_proc.sh start

40 02 * * 0 . /apps2/wbcpat/load/run_re_pi_gp_proc/run_re_pi_sp_proc.sh start


i have been scheduled this all scripts in crontab on every sunday.


but i'am getting the error mail like . /apps2/wbcpat/load/run_re_pi_sp_proc/run_re_pi_sp_proc.sh line 49. . /apps2/wbcpat/load/run_re_pi_sp_proc/run_re_pi_sp_proc.sh no such files and directory.
[+1] done

$DIR/$Script2 start2


can suggest me why this scripts are not scheduling in cronjob.



Thanks
  • 1. Re: error
    Nik Expert
    Currently Being Moderated
    Hi.

    Check line 49 of
    /apps2/wbcpat/load/run_re_pi_sp_proc/run_re_pi_sp_proc.sh

    Log say that command from this line can't be found.

    Possible reason - jons started from cron have different environment then general user, so this script may be require define some additional environments.


    Regards.
  • 2. Re: error
    948062 Newbie
    Currently Being Moderated
    while running manually all three scripts are running successfully... but when we are trying to run using cronjob scheduling scripts are not running.
    please give ur suggestion.
  • 3. Re: error
    948062 Newbie
    Currently Being Moderated
    i have created this new cron on server bys296d001.
    other than this three Scripts no other Scripts in the cron.
  • 4. Re: error
    Paul M. Oracle ACE
    Currently Being Moderated
    please give ur suggestion.
    Nik has already given his suggestion ( this script may be require define some additional environments ).
    while running manually all three scripts are running successfully
    When you log in, the user's profile is executed, and most probably necessary environment settings are there. Try executing the same at the beginning of each script, for example
    . $HOME/.bash_profile
    <other commands>
  • 5. Re: error
    rukbat Guru Moderator
    Currently Being Moderated
    Moderator Action:
    Multi-cross-posted:
    need to start the cron

    Thread locked because of poor forum etiquette.

Legend

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