With 1.7 million freelancers, we'll match you with the perfect talent.
The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
Need a bash script to run on Linux. CentOS.
Input on Command Line
Number of Days. Integer.
Input: File. Text File. Call it DomainNameList
Log File: Location /home
File will be a list of domain names
In the format of xxxxxxx.xxx
The script will
Create a pathname of a directory where all the files and directories under it will be deleted if they are greater than today, less the Number of Days variable.
There are three directories to be cleaned
Home/tendimen/public_html/<domainname>/feeds/ (Just the .xml files)
Home/tendimen/public_html/<domainname>/wp-content/w3tc/pgcache (just the directories and their files)
Log File. Every activity post timestamp and status. Errors should be very specific.
Numberofdays is defaulted at 30. Make an Environment Variable please, but also a command line input argument
Open Log file. Post Start Message.
For every domain name in DomainN...
Sign in or Register to see more