linux - Crontab Centos Run Perl every 2 Minutes -
i have server rhel 7 must run script "perl" in every 2 minutes , hour , day , week .
so made theses steps ,
nano /etc/crontab
and inserted command below .
2**** projop /web/projop/packages/intranet-helpdesk/perl/./import-pop3.perl
but not running . full crontab :
shell=/bin/bash path=/sbin:/bin:/usr/sbin:/usr/bin mailto=root # details see man 4 crontabs # example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) or jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (sunday=0 or 7) or sun,mon,tue,wed,thu,$ # | | | | | # * * * * * user-name command executed #29 3 * * * /root/bin/export-dbs > /var/log/postgres/export-dbs.log 2>&1 #24 3 * * * /usr/bin/find /export/backup -name '*.tgz' -mtime +6 | xargs rm #25 3 * * * /usr/bin/find /export/backup -name '*.bz2' -mtime +6 | xargs rm 2**** projop /web/projop/packages/intranet-helpdesk/perl/./import-pop3.perl
someone me ? thanks.
if projop command call program +x right , referenced path or profile or bashrc, sure command , try test it.
2 * * * * projop /web/projop/packages/intranet-helpdesk/perl/./import-pop3.perl
regards
Comments
Post a Comment