You are not logged in.

#1 2021-12-19 09:36:20

pepper
Member
Registered: 2017-12-09
Posts: 135

[SOLVED] simple crontab job doesn't start

I created a crontab job using "crontab -e", this is a test to check if it runs each minute but it doesn't run

 * * * * * ~/.config/mini_backups.sh

(I tried already 0,30 * * * *, but it doesn't run each 30min, I tried 1 * * * *.. nothing it doesn't start)

this is "~/.config/mini_backups.sh":

 
#!/bin/sh
mousepad

"systemctl status cronie" shows the service is running

Last edited by pepper (2021-12-19 13:34:44)

Offline

#2 2021-12-19 09:54:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,365

Re: [SOLVED] simple crontab job doesn't start

"mousepad" is a GUI texteditor that you're trying to launch outside a display context, https://gist.github.com/AladW/de1c5676d93d05a5a0e1
Or try "touch /tmp/test" instead

Offline

#3 2021-12-19 13:35:09

pepper
Member
Registered: 2017-12-09
Posts: 135

Re: [SOLVED] simple crontab job doesn't start

thanks for your time..

Offline

Board footer

Powered by FluxBB