From bob at greschke.com Wed Feb 15 15:58:13 2023 From: bob at greschke.com (Bob Greschke) Date: Wed, 15 Feb 2023 13:58:13 -0700 Subject: [Tkinter-discuss] Running from a cron job? Message-ID: <89EEFE4E-1380-4929-B6C6-15A680297B33@greschke.com> 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