Connecting Tech Pros Worldwide Help | Site Map

Running cronjob on php script -> constantly running out of disk space

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 27th, 2007, 11:06 PM
Member
 
Join Date: Aug 2007
Posts: 67
Default Running cronjob on php script -> constantly running out of disk space

Hi

I'm trying to run a cronjob on a php script

everything is working fine, but I'm getting my server disk space fulled up - so what's wrong here ???

how can I fix this problem ?
Reply
  #2  
Old August 28th, 2007, 12:46 AM
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Age: 25
Posts: 5,435
Default

Heya, Coool.

Changed thread title to better describe the problem.

What does your cron job look like? Is it creating any temporary files or modifying a database?
Reply
  #3  
Old August 28th, 2007, 03:00 AM
gregerly's Avatar
Expert
 
Join Date: Sep 2006
Posts: 188
Default

Quote:
Originally Posted by coool
Hi

I'm trying to run a cronjob on a php script

everything is working fine, but I'm getting my server disk space fulled up - so what's wrong here ???

how can I fix this problem ?
<joke>
My guess......wait for it.....

Is your disk space getting filled up?
</joke>

Ok, seriously, we need more info on what your cron job is trying to do, and that might shed a little light on why your disk space is being all used up.

Greg
Reply
  #4  
Old August 28th, 2007, 11:35 AM
Member
 
Join Date: Aug 2007
Posts: 67
Default

alright :)

my cron job run a php script every 10 minutes

this php script has 3 calls to functions in another page

I have few tables already in my database

a call to remove database table -- (i have to do that)
a call to create table in my database
a call to read a table in text format (url) -- and insert this data into my database table

-----------

now in the page that have these functions

it's as normal as create table - delete table - open file/read it/insert data to database table

but yeah I have a temp. table created after inserting all the data in a table
why ! because I wanted to group by all table by one field
and I did that by creating a tempTable that select all feilds in oldtable and group them by one field -> then delete my old table -> then change the name of this tempTable to my old table name

so what do you think now the problem ?
Reply
  #5  
Old August 28th, 2007, 02:36 PM
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Age: 25
Posts: 5,435
Default

Heya, Coool.

Have you checked to make sure that only the correct data is getting copied?

Is your script perhaps creating too many tables or not properly dropping the ones it creates?
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.