Re: Shell w/ Sandboxes

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58600
interpreted = N
texte = Simply set the variable on the page above the [shell], and when you construct the script you want to run within [shell], just drop the [variable] in. So, in this example, you would use something like this. [text]height=100[/text] [text]width=100[/text] [text]sourcefile=logo.jpg[/text] [text]resultfile=result.kpg[/text] Then you would a use a [shell] script like this (in your SandBoxes scripts) to resize the image. [shell] path-to-ImageMagick/convert -size [width]x[height] [sourcefile] -resize [width]x[height] +profile "*" [resultfile] [/shell] Hope this helps. Mark. On 24 Jun 2004, at 11:48 pm, Jesse Proudman wrote: > How do you pass variables to a [shell] w/ a sandbox? > > I've tried: > > [shell scriptid=ImageMagick&dim=100x100&imfile=logo.jpg][/shell] > > and > > [shell scriptid=ImageMagick]dim=100x100&imfile=logo.jpg[/shell] > > 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: Shell w/ Sandboxes ( Jesse Proudman 2004)
  2. Re: Shell w/ Sandboxes ( Mark Derrick 2004)
  3. Shell w/ Sandboxes ( Jesse Proudman 2004)
Simply set the variable on the page above the [shell], and when you construct the script you want to run within [shell], just drop the [variable] in. So, in this example, you would use something like this. [text]height=100[/text] [text]width=100[/text] [text]sourcefile=logo.jpg[/text] [text]resultfile=result.kpg[/text] Then you would a use a [shell] script like this (in your SandBoxes scripts) to resize the image. [shell] path-to-ImageMagick/convert -size [width]x[height] [sourcefile] -resize [width]x[height] +profile "*" [resultfile] [/shell] Hope this helps. Mark. On 24 Jun 2004, at 11:48 pm, Jesse Proudman wrote: > How do you pass variables to a [shell] w/ a sandbox? > > I've tried: > > [shell scriptid=ImageMagick&dim=100x100&imfile=logo.jpg][/shell] > > and > > [shell scriptid=ImageMagick]dim=100x100&imfile=logo.jpg[/shell] > > 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/ Mark Derrick

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:

back button loses cart (2000) 5.0 Pricing (2003) WebCatalog Hosting (1996) Hiding the URL(was Cart ID Duplication) (2001) free zip codes database (1999) Bit off subject -- Faxing orders (1997) Fun with Dates - revisited (1997) [WebDNA] [append] does not add the newline char at the end of the new record?! (which causes subsequent [search] to fail.) (2009) shipcost (1997) MasterCounter - Does this work?? (1999) OT: Variables in printed URL (2007) Cart sweeper (2000) Download Question (1997) RE: Web*SSL and WebCatalog (1997) firewall ports for Mac OS X/WebCatalog (2001) Sku numbers (1997) WebCat2b12 - New features for 1.6 users ... (1997) I give up!! (1997) Generating Report Totals (1997) Doing VALIDCARD right? (1998)