Go Back   HostGator Peer Support Forums > General Discussion > Webhosting

Notices

Reply
 
Thread Tools
  #1  
Old 06-23-2008, 10:46 PM
jWebSolution jWebSolution is offline
Hatchling Croc
 
Join Date: Jun 2008
Posts: 3
Default need a cron job...

...to empty some folders on my site.

I am trying to use these:

rm -rf /home/mySite/public_html/cache/*

But I get an error as follows:

/bin/sh: /bin/rm: Argument list too long

So, any ideas how to fix this cron job to work properly?

Thanks,
Reply With Quote
  #2  
Old 06-23-2008, 11:02 PM
vince vince is offline
Hatchling Croc
 
Join Date: May 2008
Posts: 23
Default Re: need a cron job...

Quote:
Originally Posted by jWebSolution View Post
...to empty some folders on my site.

I am trying to use these:

rm -rf /home/mySite/public_html/cache/*

But I get an error as follows:

/bin/sh: /bin/rm: Argument list too long

So, any ideas how to fix this cron job to work properly?

Thanks,
find /home/mySite/public_html/cache/ -type f -exec rm {} \;
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job osirion Suggestions 1 01-29-2008 02:39 AM
Cron Job Dwight Shared Hosting Support 7 07-27-2006 05:10 PM

All times are GMT -5. The time now is 06:04 PM.