![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| stop execution of script with in the script | dsdev_123 | AIX | 3 | 03-20-2008 11:57 AM |
| Script to run non-stop | Raynon | Shell Programming and Scripting | 37 | 01-21-2008 05:36 AM |
| Script does not stop when doing a read | rooseter | Shell Programming and Scripting | 7 | 11-05-2007 01:46 PM |
| stop Prstat using shell script | filthymonk | Shell Programming and Scripting | 19 | 05-23-2007 06:24 AM |
| Start/Stop Script | jjv1 | UNIX for Dummies Questions & Answers | 2 | 12-16-2003 04:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script that doesn't stop
Hi all,
I got a script that runs automatically using the cron file. The script starts running at midnight and suppose to delete image files from folders and sub-folders. The script ends when he finishes deleting or after 5 hours. My problem is that the script doesn't stop running even after 5 hours, it causes the computer to be slower, so when I type "top" I can see that the "du" process kills the CPU usage. Is there anyway to force the script to stop?, is it computer configuration related? Any help will be appreciated. |
|
||||
|
If it takes you 5 hours to delete files then maybe your need to look at your script again or file management on your server. You must have 100's of thousands of files... Anyways I guess you are doing a check for the 5 hours, a simple exit should do the job. Maybe post your script and people maybe see what you are doing.
|
|
||||
|
Hi
I attached 2 files below: The script: check_space.txt (just rename to check_space) The resource file that defines the folders' sizes: check_space.res.txt (just rename to check_space.res) These are the lines that activates the script from the cron (root): # PERIODICAL CHECK IMAGE SIZE 6 1 * * * /usr/local/opal/utils/check_space 5 5 * * * killall -9 du 6 5 * * * killall -9 /usr/local/opal/utils/check_space |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|