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

How to launch a new script with passing arguments?

 [1/2] from: D::Weyand::gmx::de at: 4-Dec-2006 7:12

Hello list, I would like to start a REBOL scripts as a separate process from inside a running REBOL script with passing arguments to the new script. Normally I would use the launch function to start another script as a separate process. But the launch command doesn´t support any /ARGS refinement. How can I do it in a REBOLish KISS-way? ATM, I am using the following "ugly" workaround: write %tmpfile reform ["REBOL []" newline "do/args %script.r script-args" newline] launch %tmpfile delete %tmpfile Do you know any simplier solution? Regards Dirk -- Ein Herz für Kinder - Ihre Spende hilft! Aktion: Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

 [2/2] from: rebol::ccsducto::com::ar at: 4-Dec-2006 19:06

Hello Dirk, AFAIK You can use call, but the security check will ask you for permissions to execute. You can change the permisions (for instance: secure [shell allow]), but the first time the security check will ask you for permissions to low security level. call {REBOL test.r "args"} Cesar