Article 6P6Y7 Linux Mint 21.3: Autorunning Scripts at Events

Linux Mint 21.3: Autorunning Scripts at Events

by
des_a
from LinuxQuestions.org on (#6P6Y7)
Please help me get educated. I don't need the scripts written for me or anything. What I want to know, is at events, how to run bash (or other shell) scripts. What is the minimum events?

* Startup, after everything else in System D (the equivelent of the old autoexec.bat in Windows 98)
* Shutdown, sometime in System D processes (the equivelent of shutdown script in GP in Windows 10)
* At logon, whether from terminal, or from GUI
* At logoff, whether from terminal, or from GUI
* At cinnamon logon (I think I know how to do this already)
* At cinnamon logoff
* Every hour, if the computer is on (I think anacron can do this)
* Every day, if the computer is on (I think anacron can do this)

Only the cinnamon scripts would have access to the GUI I'm sure, which is OK with me, but I DO need those to have access to it.

These are the minmimum events and I'd say I should start with those, but do you guys also recommend other events (the second part of the question), and if so, what events. I'll only keep it open for so long, after I get the first part answered.

I do need very blank templates (you don't have to write the whole thing for me, but rather help me write them myself). Also, the commands to enable the scripts to run (They have to work in bash). Thanks in advance, and I bet it helps others too, especially if someone was to want a network of Linux Mint machines. I know 22 is almost out, but we'll work with what we got for now, for the question. I don't think I want to upgrade to 22, anyway, as it seems as if 22.1 would be a better time to upgrade. Thanks again, in advance!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments