Excellent, thanks a lot Rein! 73, Per Rein Couperus skrev 2014-06-03 10:40: > I use a small perl script to start both fldigi and the server: > ######################################## > use File::stat; > use Time::localtime; > $term = `whereis lxterminal`; > print "Starting fldigi\n"; > if ($term){ > `lxterminal -e /usr/local/bin/fldigi --wfall-only > --debug-pskmail &`; > } else { > `xterm -bg white -fg black -e /usr/local/bin/fldigi > --wfall-only --debug-pskmail &`; > } > print "Starting server\n"; > > if ($term){ > `lxterminal -e /usr/local/share/pskmail_server/rflinkserver.pl`; > } else { > `xterm -bg white -fg black -e > /usr/local/share/pskmail_server/rflinkserver.pl`; > } > print "PSKmail started\n"; > exit (0); > ##################################################### > > This script does not check if the server/fldigi is running, A check > could be added to see if they are still running or crashed, and run a > crontab every hour. > > Anyway, this one can be started with crontab using: > # m h dom mon dow command > 24 10 * * * export DISPLAY=:0 && /usr/bin/lxterminal -e > /home/rein/<above script> > > There used to be a restart script, I am attaching that here for Per to > take a look... > > Rein PA0R > > BTW, Fldigi 3.2.81 crashes (X I/O error) @ PA0R and PI4TUE about 1x a > week... > could be a problem in the fastlight kit... > > > > -- > > > > That is a good idea. Actually, as fldigi is such complete crap I'd like > a script that can check if fldigi is locked up or completely crashed and > relaunch it every hour or so (it's always crashed when I check the > server). Wasn't there such a function a while back? Anyone happen to > have a script somewhere I can modify? > > 73, Per > sm0rwo > > > > A Mulder (Redacted sender amulder@xxxxxxxxx for DMARC) skrev 2014-06-03 > 09:58: > > Hello Greg, > > > > Try adding DISPLAY=:0 to the top of your cron file instead. > > > > Regards, > > > > Alex > > -------------------------------------------- > > On Mon, 6/2/14, Greg <kb1ncj@xxxxxxxxx> wrote: > > > > Subject: [pskmail] cron to start pskmail server > > To: "pskmail@xxxxxxxxxxxxx" <pskmail@xxxxxxxxxxxxx> > > Date: Monday, June 2, 2014, 8:40 AM > > > > I am attempting to get server to > > start in cron but as of yet only get a terminal with no > > output. Any help appreciated! > > > > Using > > > > export DISPLAY=:0 && lxterminal -e "pskmail_server" > > > > where "pskmail_server" (without quotes) works correctly in a > > terminal now. Just not with the cron command. > > > > Greg > > KB1NCJ > > > > > > > >