I am trying to get cron to run a script in a console. The script must run in a console because it requires interaction. Using KCron, I have added the line:
Code:
/usr/bin/konsole -e /home/rollo/scripts/script.sh
to crontab (which one..?), which makes
crontab -l produce this:
Code:
rollo@KanotixBox:/var/mail$ crontab -l
#
0 21 * * * /usr/bin/konsole -e /home/rollo/scripts.script.sh
# This file was written by KCron. Copyright (c) 1999, Gary Meyer
# Although KCron supports most crontab formats, use care when editing.
# Note: Lines beginning with "#\" indicates a disabled task.
The script seems to run at the correct time (judging by the output of ps), but Konsole doesn't open. Which is no use because it's interactive.
Run directly from KCron ("Run it now"), the script works fine and Konsole opens correctly.
What could be going on? Help much appreciated.