Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: jls on January 31, 2011, 12:04:58 PM

Title: cron doesn't work (maybe because I want to autolaunch an X app?)
Post by: jls on January 31, 2011, 12:04:58 PM
I have cron in my boot options and doesn't work, if I start it from .X.d no prbl.
Maybe cause I want to autolaunch filetool which is an X app ?
Title: Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
Post by: gutmensch on January 31, 2011, 02:31:17 PM
What about filetool.sh?
Title: Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
Post by: jls on January 31, 2011, 03:32:41 PM
before I was doing with filetool.sh, but I have a small pendrive so the backup was failing cause I'm used to fill the desktop and then free it before shut down or when the filetool window warns me, but not always I accept.
Title: Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
Post by: curaga on February 01, 2011, 06:26:02 AM
I doubt you can start X apps from cron. At least not as root, and not without DISPLAY set.
Title: Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
Post by: jls on February 01, 2011, 10:35:23 AM
Code: [Select]
tc@hp:~$ crontab -l
*/30 * * * * su "$(cat /etc/sysconfig/tcuser)" -c "[ -z "$(pidof filetool)" ] && filetool" &
works but cron has to be started from ~/.X.d