Re: shell problems again...
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48988
interpreted = N
texte = grabbing at straws here...i don't know how the commands and options are passed to the shell but when i program inperl i always have better results when i create a variable with my full command and thenjust pass that single variable to the shell.i.e.[text]dothis=gzip -S .zip [file_name][/text][shell] [dothis][/shell]MattKalin 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/
Associated Messages, from the most recent to the oldest:
grabbing at straws here...i don't know how the commands and options are passed to the shell but when i program inperl i always have better results when i create a variable with my full command and thenjust pass that single variable to the shell.i.e.[text]dothis=gzip -S .zip [file_name][/text][shell] [dothis][/shell]MattKalin 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/
Matthew A Perosi
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:
Hiding HTML and breaking the page (1997)
absolute paths for databases? (1997)
Problems with date math (1997)
[WebDNA] Poll: Cloud hosting (2016)
Forms Search Questions (1997)
HELP!!! (1998)
LookUp (2001)
Some shell fun (2004)
OT: Just for a waste of time (2003)
Can you do this??? and other stuff (1997)
HomePage Caution (1997)
CC and Europe (1999)
ShowNext truncating passed variable?? (1997)
Browser Problem?!? Still getting Error message using POST! (1997)
Large founditems loops (2000)
WebCat2.0b15-to many nested [xx] tags (1997)
Lookup command (1998)
Help needed! (1998)
ups quickcost [repost] (1999)
looping table rows (1999)