Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: tropicalview on September 10, 2009, 09:04:38 PM
-
Dear all,
I created a .sh "program" that will allert if the backup devices are not in place.
how can i place /home/e-smith/files/ibays/contribs/files/clean-backup/clean-backup.sh so that it will be submitted to the background at system bootup (the script it self will sleep each day.
-
you could call it in /etc/rc.d/rc.local: simply add /home/e-smith/files/ibays/contribs/files/clean-backup/clean-backup.sh at the end of file..
just a question.. why don't you use cron?
Stefano
-
Hi Stefano a.k.a. nenonano ,
Thank you for the answer,
well i created a .sh program that will do all the jobs i want to be executed, and now it's flexible for me to addapt whatever i want.
I did try with cron before i started creating this little program, but i did not understand how exactly.
after all this was easier for me. (i know this is not like the standards as SME uses.)
-
Respecting SME design philosofy, you must add your script under local event (/etc/e-smith/events/local). Rename your script to S99thenameyouwant.sh
Please, read the local event description here:
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#Standard_events_and_their_arguments