Subj : Re: MPL Coding - firing a bash script?? To : deon From : paulie420 Date : Sun Dec 01 2024 02:11 pm de> You might get a better answer, but one option might be to get your MPL to de> create a semaphore - and then have a cron job run every minute looking de> for it, and when it sees it, does what it needs to do. de> de> I think there might even be a filewatcher daemon of sorts (never used one de> myself), that comes to life instantly it sees the semaphore - which de> 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) .