Subj : BBS question
To : Alan Ianson
From : Richard Falken
Date : Sun Dec 15 2019 07:08 am
Re: BBS question
By: Alan Ianson to Greg Youngblood on Sat Dec 14 2019 03:11 pm
>
> GY> I'd like to know how to add the command to open a terminal window then
> GY> run those commands in the .sh file.
>
> I have never done that and don't know if it's possible. Cron is meant to run
> commands unattended so they are not seen.
>
It has been some time since I last did something of this sort, but you should set the proper DISPLAY variable in cron and authorize the cron user to use that display.
I think you can do it, but it sounds very fragile to me. Plus, if you don't have a working display by the time cron triggers, it all will crash.
If invoking the scripts from a graphical interface was a must, I would forget about cron and use my desktop environment to load a while loop that called the commands periodically.