Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: OT launching /View script via cron

From: nitsch-lists:netcologne at: 6-Jul-2004 21:17

On Dienstag, 6. Juli 2004 20:36, Carlos Lorenz wrote:
> Hi list > > I would appreciate any help on this: > > I want to use CRON in order to wake up a /View script every 15 minutes > > Using crontab -e I have entered the following > > 0,15,30,45 * * * * /home/user/rebol/rebol > /home/user/rebol/scripts/myscript.r > > Tough cron executes the job nothing happens and and I got the following > email:
Do you really need /view? /core works without X. Else, something a shell-script like export DISPLAY=0:0 /home/user/rebol/rebol/home/user/rebol/scripts/myscript.r You need also access to that display. Don't know much about cron, i guess it runs as root. so we su: export DISPLAY=0:0 su display-owner -c /home/user/........ And because i may not be logged in, i have a vnc-server running, which works as headless X. then the 0:0 must be adjusted of course.