WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cron doesn't work (maybe because I want to autolaunch an X app?)  (Read 2186 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
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 ?
« Last Edit: February 01, 2011, 10:35:49 AM by jls_legalize »
dCore user

Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
« Reply #1 on: January 31, 2011, 02:31:17 PM »
What about filetool.sh?
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
« Reply #2 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.
dCore user

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: cron doesn't work (maybe because I want to e cautolaunch an X app?)
« Reply #4 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
dCore user