NameSilo

Would this cron job work?

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

dev99

Established Member
Impact
7
Hi

I need a cron job to delete files in a folder every 2 or 3 days.

I will set it up from directadmin.

I know how to do the date settings, but would this command work.

cd /(file name) rm fr *
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I'm not sure about directadmin but you can try
rm -rf /path/to/your/folder
 
0
Close
You may also need to use the tilde character to refer to your home directory. Something like

rm -rf ~/path/to/*
 
0
Close
thanks, i will try it.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back