Re: Passing Variables to a [shell scriptid=123][/shell] context

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56096
interpreted = N
texte = Not sure what you mean by 'pass' a variable to a script, DOS, SHELL, or APPLESCRIPT. The [SHELL] context simply passes the 'code' to the OS for execution. However you can embed WebDNA into your script since the engine will parse the script, evaluating any WebDNA tags, before passing it to the OS. For example: If a SandboxScript with id 'rotateimagecw' contains something like this: "[PathToImageMagick]convert" "[REL_ROOT_DIR]photofile/[currPhoto]" -rotate +90 +profile "*" "[REL_ROOT_DIR]photofile/[currPhoto]"[unurl][line_ending][/unurl] Then in your template you would have something like this: .... [text]PathToImageMagick=/usr/lib/[/text] [text]REL_ROOT_DIR=../../[/text] [text]currPhoto=myhouse.jpg[/text] [text]line_ending=%0A[/text] [showif [platform]^Windows] [text]line_ending=%0D%0A[/text] [/showif] [shell scriptid=rotateimagecw][/shell] .... -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Jesse Proudman Sent: Thursday, February 12, 2004 11:28 AM To: WebDNA Talk Subject: Passing Variables to a [shell scriptid=123][/shell] context Is it possible to pass variables to a [shell scriptid=123][/shell] context? If so, how? Thanks -- Jesse Williams-Proudman Blue Box Development :: Custom Web Solutions +1.206.778.8777 :: jesse@blueboxdev.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Passing Variables to a [shell scriptid=123][/shell] context ( "Scott Anderson" 2004)
  2. Re: Passing Variables to a [shell scriptid=123][/shell] context ( Tim Robinson 2004)
  3. Re: Passing Variables to a [shell scriptid=123][/shell] context ( Dave Hurley 2004)
  4. Passing Variables to a [shell scriptid=123][/shell] context ( Jesse Proudman 2004)
Not sure what you mean by 'pass' a variable to a script, DOS, SHELL, or APPLESCRIPT. The [shell] context simply passes the 'code' to the OS for execution. However you can embed WebDNA into your script since the engine will parse the script, evaluating any WebDNA tags, before passing it to the OS. For example: If a SandboxScript with id 'rotateimagecw' contains something like this: "[PathToImageMagick]convert" "[REL_ROOT_DIR]photofile/[currPhoto]" -rotate +90 +profile "*" "[REL_ROOT_DIR]photofile/[currPhoto]"[unurl][line_ending][/unurl] Then in your template you would have something like this: .... [text]PathToImageMagick=/usr/lib/[/text] [text]REL_ROOT_DIR=../../[/text] [text]currPhoto=myhouse.jpg[/text] [text]line_ending=%0A[/text] [showif [platform]^Windows] [text]line_ending=%0D%0A[/text] [/showif] [shell scriptid=rotateimagecw][/shell] .... -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Jesse Proudman Sent: Thursday, February 12, 2004 11:28 AM To: WebDNA Talk Subject: Passing Variables to a [shell scriptid=123][/shell] context Is it possible to pass variables to a [shell scriptid=123][/shell] context? If so, how? Thanks -- Jesse Williams-Proudman Blue Box Development :: Custom Web Solutions +1.206.778.8777 :: jesse@blueboxdev.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Scott Anderson"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Deleting Orders (1997) Include a big block of text (1997) Frames and cart values (1998) Loss in form (1998) RAM problems, [appendfile] problems (1998) plugin-acgi, different results (1997) Two submit buttons ? (1997) [append] problem (1997) A question on sub-categories (1997) Possible Bug in 2.0b15.acgi (1997) DHTML or Java Programmers (2000) Separate SSL Server (1997) Bug Report, maybe (1997) Listserver problem (1997) Where is f2? (1997) WebCatalog for Postcards ? (1997) What am I missing (1997) Date search - yes or no (1997) Cookies (1999) Re:2nd WebCatalog2 Feature Request (1996)