You are not logged in.
Pages: 1
Installed dcron, added "crond" to /etc/rc.conf autorun, edited "crontab -e" and saved
*/2 * * * * gcalctool
there but gcalctool is not started. Should be every 2 minutes...
What is wrong here?
Offline
For some reason "crontab -e" saves my config in "/tmp/crontab.F9VmyJ". Is this the problem?
Offline
crontab -e opens a temporary file which is rotated into place of the real crontab file after editing.
In this particular case, gcalctool runs in an environment that doesn't know of your X session. I assure you it's running (and failing) every 2 minutes. It needs to know about your display as well as have authorization to access it.
Offline
Have you started crond?
Offline
You need to set DISPLAY to get X programs to work.
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
My config is:
*/1 * * * * kill `ps fax | grep 'kdeinit4' | awk -- '{print $1}'`
I watch kdeinit4 processes via htop and they are not being killed every minute. Although if I perform this command manually - kdeinit4 is killed.
Offline
My config is:
*/1 * * * * kill `ps fax | grep 'kdeinit4' | awk -- '{print $1}'`
I watch kdeinit4 processes via htop and they are not being killed every minute. Although if I perform this command manually - kdeinit4 is killed.
Maybe it needs a terminal to run in - try 'pkill kdeinit4' instead.
Edit: https://bugs.archlinux.org/task/18352
Edit 2: I've tested it with sxiv instead of kdeinit4 - works. Your method will produce at least two hits - one is the kdeinit4 you want to kill, the other is that search, as it has 'kdeinit4' in it:
[karol@black ~]$ ps fax | grep 'sxiv'
3017 pts/0 S+ 0:00 | \_ grep sxiv
3015 pts/4 S+ 0:00 \_ sxiv pics/lego/4217246892_c520177c47_o.jpg
If you try to kill the first one you get
[karol@black ~]$ kill 3017
bash: kill: (3017) - No such process
because it already finished.
Last edited by karol (2011-05-22 18:07:06)
Offline
Pages: 1