hello to everyone i have the next problem i program a script who delete al de *.lock files in the /var/spool/mail/ my script its this:
rm /var/spool/mail/*.lock
the file who have this cript it calls borralocks.sh in te crontab i put the nex line to run this task every five minutes, this its the line in the contab file
5 * * * * /var/spool/mail/borralocks.sh
the problem ist the cron dont run the script the file have the 755 permissions any one have a idea why cron its not running any of the tasks.
and if i make a ps -e | grep cron its return me this , this menas the daemon its runnin
ps -e | grep cron
3754 - 0:29 cron
the complete cron file its this.
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#0 3 * * * /usr/sbin/skulker
#45 2 * * 0 /usr/lib/spell/compress
#45 23 * * * ulimit 5000; /usr/lib/smdemon.cleanu > /dev/null
0 11 * * * /usr/bin/errclear -d S,O 30
0 12 * * * /usr/bin/errclear -d H 90
0 * * * * /usr/sbin/sendmail -q 1>/dev/null 2>/dev/null
# SSA warning : Deleting the next two lines may cause errors in redundant
# SSA warning : hardware to go undetected.
01 5 * * * /usr/lpp/diagnostics/bin/run_ssa_ela 1>/dev/null 2>/dev/null
0 * * * * /usr/lpp/diagnostics/bin/run_ssa_healthcheck 1>/dev/null 2>/dev/null
# SSA warning : Deleting the next line may allow enclosure hardware errors to go
undetected
30 * * * * /usr/lpp/diagnostics/bin/run_ssa_encl_healthcheck 1>/dev/null 2>/dev/
null
# SSA warning : Deleting the next line may allow link speed exceptions to go und
etected
0 4 * * * /usr/lpp/diagnostics/bin/run_ssa_link_speed 1>/dev/null 2>/dev/null
#30 4 * * * /home/root/respaldoDiario.sh
30 3 * * 1 /home/root/borraBorrados.sh
59 23 * * * /home/root/logmail.sh 1> /dev/null 2> /dev/null
5 * * * * /var/spool/mail/borralocks.sh
rm /var/spool/mail/*.lock
the file who have this cript it calls borralocks.sh in te crontab i put the nex line to run this task every five minutes, this its the line in the contab file
5 * * * * /var/spool/mail/borralocks.sh
the problem ist the cron dont run the script the file have the 755 permissions any one have a idea why cron its not running any of the tasks.
and if i make a ps -e | grep cron its return me this , this menas the daemon its runnin
ps -e | grep cron
3754 - 0:29 cron
the complete cron file its this.
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#0 3 * * * /usr/sbin/skulker
#45 2 * * 0 /usr/lib/spell/compress
#45 23 * * * ulimit 5000; /usr/lib/smdemon.cleanu > /dev/null
0 11 * * * /usr/bin/errclear -d S,O 30
0 12 * * * /usr/bin/errclear -d H 90
0 * * * * /usr/sbin/sendmail -q 1>/dev/null 2>/dev/null
# SSA warning : Deleting the next two lines may cause errors in redundant
# SSA warning : hardware to go undetected.
01 5 * * * /usr/lpp/diagnostics/bin/run_ssa_ela 1>/dev/null 2>/dev/null
0 * * * * /usr/lpp/diagnostics/bin/run_ssa_healthcheck 1>/dev/null 2>/dev/null
# SSA warning : Deleting the next line may allow enclosure hardware errors to go
undetected
30 * * * * /usr/lpp/diagnostics/bin/run_ssa_encl_healthcheck 1>/dev/null 2>/dev/
null
# SSA warning : Deleting the next line may allow link speed exceptions to go und
etected
0 4 * * * /usr/lpp/diagnostics/bin/run_ssa_link_speed 1>/dev/null 2>/dev/null
#30 4 * * * /home/root/respaldoDiario.sh
30 3 * * 1 /home/root/borraBorrados.sh
59 23 * * * /home/root/logmail.sh 1> /dev/null 2> /dev/null
5 * * * * /var/spool/mail/borralocks.sh