LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2015, 05:42 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,767
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking howto run script when various events happen


Is there an existing utility {suite} that will let me do the following:
  • on mount {filesystem} run {script}
  • on un-mount {filesystem} run {script}
  • when {folder} content changes run {script}
  • when {file} content changes run {script}
  • on connect to {SSID} run {script}
  • on disconnect from {SSID} run {script}
  • on connect to {ethN} run {script}
  • on disconnect from {ethN} run {script}
  • ... and so on ...
  • cron handles time and date based events

I'm hoping for something that is more like cron than systemd.

I used to see all sorts of articles about this sort of thing but then we got more and more-complex subsystems doing action-on-event processing and the end-user options for doing this are not as obvious -- to me.

Thanks in advance,
~~~ 0;-Dan
 
Old 03-12-2015, 08:34 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I'm not aware of anything that will do it all .. there are several tools that can handle parts such as inotifywait for directory content changes and plugd for network connect/disconnect

Maybe we should start a small project ..
 
Old 03-13-2015, 12:05 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,767

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by kbp View Post
I'm not aware of anything that will do it all .. there are several tools that can handle parts such as inotifywait for directory content changes and plugd for network connect/disconnect

Maybe we should start a small project ..
If there are multiple tools, each that handle part of my requirements, we might need one project "... to rule them all, and in the darkness bind them ..." (sorry)

Sadly, I think that the 'systemd' folks have already co-opt-ed the do-everything when events happen problem. I'm interested in end-user, get-my-work-done, user-level do-something-on-event processing.

I'll draft a Blueprint document...

Thanks for the reply,
~~~ 0;-Dan
 
Old 10-16-2015, 02:42 PM   #4
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,767

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
I finally -- FINALLY -- found a solution to what I want to do.
Use INCRON for actions

I have not made this work like I want ... yet ... but it should meet my requirements based on what it written on the tin.

Thanks, again,
~~~ 0;-Dan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
seeking howto printing 2-up duplex ... correctly SaintDanBert Linux - Desktop 2 06-22-2012 03:20 PM
seeking HOWTO -- EmperorLinux(tm) kernel SaintDanBert Linux - Hardware 1 12-08-2009 04:06 AM
Howto Encrypt & Run Bash script File nabeeliumattack Linux - General 7 05-17-2008 04:58 PM
howto run a script from cron every 5 minutes except 11pm-8am ? cccc Programming 2 03-20-2005 03:52 AM
PHP HOWTO : Run script as root guideweb Linux - Software 3 08-22-2004 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration