[Tkinter-discuss] Running from a cron job?

Bob Greschke bob at greschke.com
Wed Feb 15 15:58:13 EST 2023


Hi!

I'm writing a tkinter utility, more than a program, that starts, looks at some data files, looks at some image files, then plots the data from the file(s) that do not have a corresponding image file, does an ImageGrab.grab() of the Canvas and saves the image with the rest of the previously saved images.

Will that work with no Desktop? There won't be any $DISPLAY, I think. I generally won't be logged in if I don't have to. It's on a kind of a server sitting in the corner collecting the data files and dust. It's running Ubuntu Desktop.

If I run it from a logged in GUI terminal thing then it, of course, runs fine. I could have the server auto log in (on a boot/reboot) and then there would be a Desktop on the normally turned off monitor. The cron job would be set up from the same account.

Thanks!

Bob



More information about the Tkinter-discuss mailing list