Perl script works but not via CRON

前端 未结 6 1940
太阳男子
太阳男子 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:29

    Based on your crontab, and depending on your installation, the problem might be the "perl". As others note the environment, particularly the $PATH variable, is different for cron. perl may not be in the path so you need to put the full path to perl in the cron command.

    You can determine the path with the command $ type perl

提交回复
热议问题