How to launch gui app from cron

Jacek Trzmiel sc0rp@hot.pl
Fri May 28 12:01:00 GMT 2004


Tomasz Rojek wrote:
> > How can I start win app from cron, so that gui is visible?
> I would register cron as a service with option -i, or --interactive (Allow
> service to interact with the desktop). HTH

Thanks, it does work.

Gui app launched from cron does show on desktop after:
$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
$ cygrunsrv --install cron -p /usr/sbin/cron -a -D -i
$ cygrunsrv --start cron

Greetings,
Jacek.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list