Systems Manager

August 14, 2019 183 views
Automated Setups CentOS

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

1 Answer

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.

Have another answer? Share your knowledge.