Create simple shell script to run on cron.
- or -
Post a project like this3067
£10(approx. $13)
- Posted:
- Proposals: 2
- Remote
- #953088
- Awarded
Description
Experience Level: Expert
General information for the business: Shell script required
Description of requirements/functionality: I need a simple shell script creating that will run once a day on a CentOS service via cron.
The script should do this:
1) Check to see if a particular service is running
2) If yes, then stop the service. Wait for service to stop.
3) Remove files from a certain directory while the service is stopped only. Wait for files to delete.
3) Check directory is empty.
4) If yes, then start service again. Wait for service to start.
5) Send email to confirm everything is complete with log.
OS requirements: Linux
Extra notes: I need a simple shell script creating that will run once a day on a CentOS service via cron.
The script should do this:
1) Check to see if a particular service is running
2) If yes, then stop the service. Wait for service to stop.
3) Remove files from a certain directory while the service is stopped only. Wait for files to delete.
3) Check directory is empty.
4) If yes, then start service again. Wait for service to start.
5) Send email to confirm everything is complete with log.
Description of requirements/functionality: I need a simple shell script creating that will run once a day on a CentOS service via cron.
The script should do this:
1) Check to see if a particular service is running
2) If yes, then stop the service. Wait for service to stop.
3) Remove files from a certain directory while the service is stopped only. Wait for files to delete.
3) Check directory is empty.
4) If yes, then start service again. Wait for service to start.
5) Send email to confirm everything is complete with log.
OS requirements: Linux
Extra notes: I need a simple shell script creating that will run once a day on a CentOS service via cron.
The script should do this:
1) Check to see if a particular service is running
2) If yes, then stop the service. Wait for service to stop.
3) Remove files from a certain directory while the service is stopped only. Wait for files to delete.
3) Check directory is empty.
4) If yes, then start service again. Wait for service to start.
5) Send email to confirm everything is complete with log.
Furiosa Ltd
99% (99)Projects Completed
101
Freelancers worked with
77
Projects awarded
28%
Last project
15 Dec 2023
Spain
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies