I've built a GPS-derived stratum 1 NTP server on a 'headless' Pi Model B (not B+), using the add-on GPS board from HAB Supplies and the excellent instructions provided by Anthony Stirk at: http://ava.upuaut.net/?p=726&cpage=1#comment-170232.
Although my familiarity with and experience of Linux is absolutely minimal I was able successfully to get the NTP server up and running without any hiccups; it then occurred to me that it would be nice to add a small display to the Pi so that I could have an accurate time-of-day clock so I followed the further set of excellent instructions provided by David Taylor at: http://www.satsignal.eu/raspberry-pi/DigitalClock.html
I now have a Pi with a 5inch 800 x 480 LCD connected to the RCA composite video output that autostarts the DigitalClock program when it boots up, and this is working beautifully.
I can SSH (using puTTY) into the 'DigitalClock' and NTP-serving Pi from the several Windows 7 PCs on my home LAN - I do this occasionally to check the NTP server's accuracy using the 'ntpq -p' command - but I'd also like to be able occasionally to kill the DigitalClock process then amend its .ini settings and restart it, and therein lies my problem...
There's a file in /home/pi/.config/autostart called DigitalClock.desktop; this contains the following:
[Desktop Entry]
Name=DigitalClock
Exec=/home/pi/arvclock/DigitalClock
Terminal=False
Type=Application
Is there any way of using a command entered from the SSH command line to restart the DigitalClock program in exactly the same way as it would autostart after a reboot of the Pi? In other words, how can I instruct the Pi to 'execute' the DigitalClock.desktop file again?
Thanks in advance for your help, which will be much appreciated by a novice Pi'er...!
--
Martin