Re: shell problems again...

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48989
interpreted = N
texte = On Thu, 27 Mar 2003, Matthew A Perosi wrote:> grabbing at straws here... > i don't know how the commands and options are passed to the shell but when i program in > perl i always have better results when i create a variable with my full command and then > just pass that single variable to the shell. > > i.e. > > [text]dothis=gzip -S .zip [file_name][/text] > [shell] > [dothis] > [/shell] thanks - i just saw that it doesn't work anyway... i don't know why yet. apparently if you do:gzip -S .zip fileis the same asgzip file mv file.gz file.zipnot good, not good... i'm gonna get zip for bsd... thanks for helping out.... > > > Matt > > > Kalin Mintchev wrote: > > > On Thu, 27 Mar 2003, Matthew A Perosi wrote: > > > > > i've never used the [shell] command in WebDNA but how about skinning the cat this > > > way... > > > > > > [shell] > > > gzip [file_name] > > > mv [file_name].gz [file_name].zip > > > [/shell] > > > > that doesn't work even on the comand line... > > i mean you can rename them but then you can uncompress them... gunzip and > > unzip are producing errors.... > > apparently there is some difference in the decompression betwen the gnu > > zip (gzip) and the zip... > > > > > > > > Matthew A Perosi > > > Psi Prime, Inc. > > > nj-singles.com > > > ijo.com > > > > > > Kalin Mintchev wrote: > > > > > > > hi all, > > > > i've been writing about those [shell] problems but nothing has been fixed. > > > > we upgraded to the 4.5 recently and i'm trying a simple thing here: > > > > > > > > [shell] > > > > gzip -S .zip [file_name] > > > > [/shell] > > > > > > > > if i try it without the option -S .zip it works but the end suffix is > > > > .gz . i know it's perfectly fine but the client wants it to be .zip (i > > > > tryed to talk to them but...). so i use the -S option for the gzip. > > > > it doesn't work. it comes out as a garbled file. it works fine on the > > > > command line... > > > > > > > > i had problems before executing a script with passed variables in the > > > > [shell] context. it look like the command passed to the shell is not > > > > really passed without alteration somehow somewhere. > > > > > > > > this is on a freebsd box.. > > > > > > > > any thoughts? > > > > > > > > thanks > > > > > > > > ------------------------------------------------------------- > > > > 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/ > > > > > > > ------------------------------------------------------------- > > 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/ > ------------------------------------------------------------- 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 problems again... (Le Pham 2003)
  2. Re: shell problems again... (Kalin Mintchev 2003)
  3. Re: shell problems again... (Le Pham 2003)
  4. Re: shell problems again... (Kalin Mintchev 2003)
  5. Re: shell problems again... (Matthew A Perosi 2003)
  6. Re: shell problems again... (Kalin Mintchev 2003)
  7. Re: shell problems again... (Kalin Mintchev 2003)
  8. Re: shell problems again... (Dale's Stuff 2003)
  9. Re: shell problems again... (Matthew A Perosi 2003)
  10. Re: shell problems again... (Kalin Mintchev 2003)
  11. Re: shell problems again... (Stuart Tremain 2003)
  12. Re: shell problems again... (Kalin Mintchev 2003)
  13. Re: shell problems again... (Matthew A Perosi 2003)
  14. Re: shell problems again... (Kalin Mintchev 2003)
  15. Re: shell problems again... (Matthew A Perosi 2003)
  16. shell problems again... (Kalin Mintchev 2003)
On Thu, 27 Mar 2003, Matthew A Perosi wrote:> grabbing at straws here... > i don't know how the commands and options are passed to the shell but when i program in > perl i always have better results when i create a variable with my full command and then > just pass that single variable to the shell. > > i.e. > > [text]dothis=gzip -S .zip [file_name][/text] > [shell] > [dothis] > [/shell] thanks - i just saw that it doesn't work anyway... i don't know why yet. apparently if you do:gzip -S .zip fileis the same asgzip file mv file.gz file.zipnot good, not good... i'm gonna get zip for bsd... thanks for helping out.... > > > Matt > > > Kalin Mintchev wrote: > > > On Thu, 27 Mar 2003, Matthew A Perosi wrote: > > > > > i've never used the [shell] command in WebDNA but how about skinning the cat this > > > way... > > > > > > [shell] > > > gzip [file_name] > > > mv [file_name].gz [file_name].zip > > > [/shell] > > > > that doesn't work even on the comand line... > > i mean you can rename them but then you can uncompress them... gunzip and > > unzip are producing errors.... > > apparently there is some difference in the decompression betwen the gnu > > zip (gzip) and the zip... > > > > > > > > Matthew A Perosi > > > Psi Prime, Inc. > > > nj-singles.com > > > ijo.com > > > > > > Kalin Mintchev wrote: > > > > > > > hi all, > > > > i've been writing about those [shell] problems but nothing has been fixed. > > > > we upgraded to the 4.5 recently and i'm trying a simple thing here: > > > > > > > > [shell] > > > > gzip -S .zip [file_name] > > > > [/shell] > > > > > > > > if i try it without the option -S .zip it works but the end suffix is > > > > .gz . i know it's perfectly fine but the client wants it to be .zip (i > > > > tryed to talk to them but...). so i use the -S option for the gzip. > > > > it doesn't work. it comes out as a garbled file. it works fine on the > > > > command line... > > > > > > > > i had problems before executing a script with passed variables in the > > > > [shell] context. it look like the command passed to the shell is not > > > > really passed without alteration somehow somewhere. > > > > > > > > this is on a freebsd box.. > > > > > > > > any thoughts? > > > > > > > > thanks > > > > > > > > ------------------------------------------------------------- > > > > 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/ > > > > > > > ------------------------------------------------------------- > > 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/ > ------------------------------------------------------------- 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/ Kalin Mintchev

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:

WebCat2b12 - New features for 1.6 users ... (1997) WC Database Format (1997) email [title] (1997) Slow Server (2005) RE: what characters are replaced for tab and CR? (1998) WebMerchant Only reads 1.4 order files error (1997) [isfolder] and [filename] (1997) Emailer prefs in two places ... (1997) [WebDNA] Ubuntu 18.04 & WebDNA server edition (2019) WebCat2b13MacPlugin - [math][date][/math] problem (1997) CloseDataBase vs CommitDataBase (2007) Search results templates (1996) no [search] with NT (1997) redirect not passing vars (2004) WebCatalog2 Feature Feedback (1996) Cold Fusion Buster (1997) Version f1 status (1997) Almost a there but..bye bye NetCloak (1997) Lastautonumber (2005) Force a search at the default.tmpl page? (1997)