Can programs be schedued in Wine easily?

Questions about Wine on Linux
Locked
broadstairs
Level 2
Level 2
Posts: 10
Joined: Sat Oct 24, 2009 7:39 am

Can programs be schedued in Wine easily?

Post by broadstairs »

I need to be able to run 4 programs 4 times per day under Wine, these are programs which have to run in a virtual desktop. So far I've not found any scheduler which works with Wine and my efforts at using cron in Linux have failed because I have not found a way to get them to open the graphics interfaces. I can open the programs using a Linux program called dex which when called from a console window works and opens the graphics interface just fine but fails using cron. I am considering using a PHP script which will work but I'd prefer either a task scheduler under wine or cron but so far have not got a solution using either.

Does anyone have any ideas please?

Stuart
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Can programs be schedued in Wine easily?

Post by jkfloris »

This can be done in the same way as a Linux program. Create a systemd service file that runs the program, controlled by a systemd timer.
There are several manuals for this, such as: https://opensource.com/article/20/7/systemd-timers
broadstairs
Level 2
Level 2
Posts: 10
Joined: Sat Oct 24, 2009 7:39 am

Re: Can programs be schedued in Wine easily?

Post by broadstairs »

Thanks I'll take a close look at that article.

Stuart
Locked