Unstoppable Domains โ€” AI Assistant

Would this cron job work?

SpaceshipSpaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
I'm not sure about directadmin but you can try
rm -rf /path/to/your/folder
 
0
•••
You may also need to use the tilde character to refer to your home directory. Something like

rm -rf ~/path/to/*
 
0
•••
thanks, i will try it.
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back