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

OT launching /View script via cron

 [1/4] from: carloslorenz::rebolbrasil::nobrenet::com at: 6-Jul-2004 15:36


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: ** User Error: REBOL: Cannot connect to X server ** Near: size: size-text self all [ para para/origin size: size + para/origin para/margin size: size + para/margin ] thanks Carlos

 [2/4] from: ml:addept:ws at: 6-Jul-2004 12:51


Looks like REBOL isn't talking to X Windows properly. Can you launch the script manually? Enjoy!! ~~Ammon ;~>

 [3/4] from: carloslorenz:rebolbrasil:nobrenet at: 6-Jul-2004 16:18


Hi Ammon Yes, manually everything is ok Carlos Em Tue, 6 Jul 2004 12:51:51 -0600 Ammon Johnson <[ml--addept--ws]> escreveu o seguinte:
> Looks like REBOL isn't talking to X Windows properly. Can you launch the > script manually?
<<quoted lines omitted: 43>>
> To unsubscribe from the list, just send an email to rebol-request > at rebol.com with unsubscribe as the subject.
-- Carlos Lorenz Revista Eletrônica(R) +55(11)4034-1971 www.revistaeletronica.com.br (C)1994~2004 Unidade Lorenz Ltda

 [4/4] 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:
<<quoted lines omitted: 4>>
> 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.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted