Report this

What is the reason for this report?

Systems Manager

Posted on August 14, 2019

Where I have to put the cleanup.sh and img_check.sh scripts in centos7



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi biswajitandolasoft,

I’m not sure what are these scripts however here is what you can do with scripts you wrote and want to use

CronJob

If you want your script to be executed automatically, you can create it as a cron job. If you are wondering what a cron job is - cron is a Linux utility which schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks.

Manual Use

If you want to use them manually, you can put them in your /usr/sbin or /usr/bin folder. That way when you type the name of the script, it will be called automatically, no matter in which directory you are.

Kind regards, Kalin D.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.