![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem running shell script (for oracle export) in crontab | jsheehan223 | Shell Programming and Scripting | 1 | 10-16-2008 04:29 PM |
| Unix script Problem with crontab | vrjalli | SUN Solaris | 8 | 01-16-2008 02:45 PM |
| how to execute sh script in bash shell via crontab | jigarlakhani | UNIX for Dummies Questions & Answers | 1 | 06-23-2007 09:50 PM |
| Problem with executing a script scheduled in crontab | Amardeep | Shell Programming and Scripting | 4 | 07-07-2006 01:51 AM |
| bash script problem | fnoyan | Shell Programming and Scripting | 1 | 02-15-2004 10:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Problem with crontab + bash script
Crontab:
16 14 * * * /root/bin/./empty_mail.sh >> /root/bin/log.txt L=`mailq |grep -c frozen` echo "${NUMMAIL} frozen mail to be removed from the mailq" #echo "Press Enter to continue" #read CONTINUE echo -en "-> " for i in `mailq | grep frozen | awk '{print $3}'` ; do exim4 -Mrm $i > /dev/null done echo "# Done" echo "" The script starts, but it doesnt clean the frozen mailque. Anyone have a clue? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|