Question

Systems Manager

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.