Perl script works but not via CRON

前端 未结 6 1945
太阳男子
太阳男子 2020-12-11 11:56

I have a perl script (which syncs delicious to wp) which:

  1. runs via the shell but
  2. does not run via cron (and i dont get an error)

The o

6条回答
  •  青春惊慌失措
    2020-12-11 12:51

    I run into the same problem ...

    Perl script works but not via CRON => error: "perl: command not found"

    ... after an update from Plesk 12.0 to Plesk 12.5. But the existing answers were not very helpful for me.

    It took some time, but than I found this thread in the Odin forum which helps me: https://talk.plesk.com/threads/scheduled-tasks-always-fail.331821/

    They suggest the following:

    /usr/local/psa/bin/server_pref -u -crontab-secure-shell ""
    

    That deletes in the /var/spool/cron/crontabs files the line:

    SHELL="/opt/psa/bin/chrootsh"
    

    After that, my cron jobs run with out any error.

    (Ubuntu 14.04 with Plesk 12.5)

提交回复
热议问题