robc
![Offline](http://damnsmalllinux.org/iB_html/non-cgi/Skin/Default/images/mem_offline.gif)
Group: Members
Posts: 24
Joined: Jan. 2007 |
![](http://damnsmalllinux.org/iB_html/non-cgi/Skin/Default/PostIcons/icon0.gif) |
Posted: April 04 2007,16:47 |
![QUOTE](http://damnsmalllinux.org/iB_html/non-cgi/Skin/Default/images/pb_quote.gif) |
manishsadh, you can have cron output to a file, including errors, to view. To do this use the following line in your crontab:
Code Sample | 0 10 * * * * /home/dsl/xx.sh >> /path/to/output/file 2>&1 |
I am having trouble with cron also. It runs, but will not open gui applications. When I use the following line in the crontab:
Code Sample | * * * * * * beaver & >> /tmp/crontest 2>&1 |
The application does not open and I get this in nohup.out:
Quote | Gtk-WARNING **: cannot open display: |
I get similar results for all gui applications that I try to open with cron. All the applications do run when I use Aterm or click on an icon.
Though they will run if I use the following line in crontab instead:
Code Sample | * * * * * * xterm -e beaver & >> /tmp/crontest 2>&1 |
but then I have an extra xterm window open that I don't want.
I'm not sure if this is a problem with gtk or with cron.
I also tryed using cron to start a script that would call a gui program and I got the same results. the script would run, but the application I wanted to start did not.
Does anyone know of a fix for this or have any guidance for this situation?
Thanks Rob
|