tcl script within cronjob

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf tcl script within cronjob

  • Creator
    Topic
  • #49643
    Femina Jaffer
    Participant

    Hello everyone,

    I have read a post previously in regards to calling a tcl script within the cronjob, and I followed the suggestions carefully but am still getting errors when I run the code from the command line.  

    After the mofications to the script I am now getting the error:

    can’t read “0”: no such variable

       while executing

    “exec hcitcl “$0” “$@” “

       (file “billing_dupfilecheck.tcl” line 20)

    Here is the code snippet:

    #!/usr/bin/ksh

    # this line to escape the next line from the tcl interpreter

    exec hcitcl “$0” “$@”

    #

    proc billing_dupfilecheck { args } {

    I also just wrote a script without the proc and then I get the error “0403-006 Execute permission denied”

    Here is the script without the proc:

    #!/usr/bin/ksh

    #!/hci/qdx5.5/integrator/bin/tcl

    # this line to escape the next line from the tcl interpreter

    exec hcitcl “$0” “$@”

    set dir /hci/quovadx/qdx5.5/integrator/testdev/FTP/EOB/OUT/

    set hold_dir /hci/quovadx/qdx5.5/integrator/testdev/FTP/EOB/HOLD/Files/

    set out_dir /hci/quovadx/qdx5.5/integrator/testdev/FTP/EOB/DUP/

    Any suggestions?

    Femina

Viewing 1 reply thread
  • Author
    Replies
    • #62837

      This is how I do it:

      http://clovertech.infor.com/viewtopic.php?t=2286&highlight=cron

      -- Max Drown (Infor)

    • #62838
      John Hamilton
      Participant

      Two questions what does your crontab entry look like ?

      Second I would just put an echo in the script and echo out $0 and see if it has any value.   You might also just so you can see how it all works. Add an echo $* which will show you the entire command line that called your app.

      It appears that it has not been passed to your script.

Viewing 1 reply thread
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,078
Forums
28
Topics
9,252
Replies
34,246
Topic Tags
275