You might get a better answer, but one option might be to get your MPL to create a semaphore - and then have a cron job run every minute looking
for it, and when it sees it, does what it needs to do.
I think there might even be a filewatcher daemon of sorts (never used one myself), that comes to life instantly it sees the semaphore - which
might be better if waiting up to 60s is not what you want...
Thats a nice idea; I quite like it. Prior to this I was just running a cronjob once a day to update links that I have archived - but I wanted the project to start importing URLs immediately. I got it all ironed out, I ended up using a Mystic DD command, ssh and nohup;
ssh user@x.x.x.x "nohup bash /home/user/some/script.sh > /dev/null 2>&1 &"
When I just tacked an "&" on the end of an ssh command, the ssh instance would remain on the BBS system just sitting there - doing it this way uses ssh to run the script on a remote server, then it runs and finished on that remote but ssh drops on the BBS side immediately.
Viola - works for this instance pretty well.
Had to make sure the remote scripts had all variables and pwd's set correctly, as some of the shortening stuff I was using didn't have the infoz it needed. Thanks for the ideas gamgee & deon!
|07p|15AULIE|1142|07o
|08.........
--- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
* Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)