Re: shell problems again...
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 49001
interpreted = N
texte = that'd be very helpfull and appreciated....On Thu, 27 Mar 2003, Matthew A Perosi wrote:> Do you have perl installed and executable in a cgi-local or cgi-bin directory?> I could snip my perl code and give it to you. I pass variables to the .pl script> then create my command in a $cmd string then pass that whole thing to the> shell.>> I've been using that method since I started web programming in 1994 and I have> yet to encounter a shell command I could not execute that way.>> Matt>> Kalin Mintchev wrote:>> > thanks...> >> > back in november it was me too... about a shell script i wanted to run and> > pass variables to it in [shell]...> >> > i alredy did the php with the redirect.... that doesn't work either...> > although simple commands like ls -al work fine a command like the one i'm> > trying to do wont.. that's the wierd part...> >> > there must be something wrong on how those commands are passed to the> > system.> >> > i think my problems are bigger then the [shell]....> >> > On Thu, 27 Mar 2003, Matthew A Perosi wrote:> >> > > I just did a quick search through the archives and did not find anything relevant. You might> > > want to try the same, maybe you'll have better luck. There was chatter back in November about> > > someone having issues with the [shell] command, but no one was able to answer why it was not> > > working and everyone just gave different work arounds instead of addressing the non-working> > > [shell] command issue.> > >> > > The only other idea I would try is to create a perl script, or php for that matter, that will> > > call the shell command for you. You would have to use a [redirect] tag and send the script your> > > variables. Then either use perl or php to run the gzip command, or just build the command and> > > pass it to the shell through that language.> > >> > > This is not the answer you are looking for, but I use every tool I know when programming on> > > unix/linux boxes to pull some really interesting stuff.> > >> > > Matt Perosi> > > nj-singles.com> > > ijo.com> > >> > >> > > Kalin Mintchev wrote:> > >> > > > ok. ther it is again...> > > > got zip and installed it. libraries, etc.... it works fine on the command> > > > line BUT this doesn't work in the [shell]> > > >> > > > [text]do=/usr/sbin/zip [file_name].zip [file_name][/text]> > > > [shell]> > > > [do]> > > > [/shell]> > > >> > > > i tried [raw] around it - nothing....> > > > i'm thinking to do a shell script but i'd still have to pass the variable> > > > [file_name] to it...> > > >> > > > any ideas?> > > >> > > > On Thu, 27 Mar 2003, Kalin Mintchev wrote:> > > >> > > > > 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 file> > > > >> > > > > is the same as> > > > >> > > > > gzip file> > > > > mv file.gz file.zip> > > > >> > > > > not 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/> > > > >> > > >> > > > -------------------------------------------------------------> > > > 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:
that'd be very helpfull and appreciated....On Thu, 27 Mar 2003, Matthew A Perosi wrote:> Do you have perl installed and executable in a cgi-local or cgi-bin directory?> I could snip my perl code and give it to you. I pass variables to the .pl script> then create my command in a $cmd string then pass that whole thing to the> shell.>> I've been using that method since I started web programming in 1994 and I have> yet to encounter a shell command I could not execute that way.>> Matt>> Kalin Mintchev wrote:>> > thanks...> >> > back in november it was me too... about a shell script i wanted to run and> > pass variables to it in [shell]...> >> > i alredy did the php with the redirect.... that doesn't work either...> > although simple commands like ls -al work fine a command like the one i'm> > trying to do wont.. that's the wierd part...> >> > there must be something wrong on how those commands are passed to the> > system.> >> > i think my problems are bigger then the [shell]....> >> > On Thu, 27 Mar 2003, Matthew A Perosi wrote:> >> > > I just did a quick search through the archives and did not find anything relevant. You might> > > want to try the same, maybe you'll have better luck. There was chatter back in November about> > > someone having issues with the [shell] command, but no one was able to answer why it was not> > > working and everyone just gave different work arounds instead of addressing the non-working> > > [shell] command issue.> > >> > > The only other idea I would try is to create a perl script, or php for that matter, that will> > > call the shell command for you. You would have to use a [redirect] tag and send the script your> > > variables. Then either use perl or php to run the gzip command, or just build the command and> > > pass it to the shell through that language.> > >> > > This is not the answer you are looking for, but I use every tool I know when programming on> > > unix/linux boxes to pull some really interesting stuff.> > >> > > Matt Perosi> > > nj-singles.com> > > ijo.com> > >> > >> > > Kalin Mintchev wrote:> > >> > > > ok. ther it is again...> > > > got zip and installed it. libraries, etc.... it works fine on the command> > > > line BUT this doesn't work in the [shell]> > > >> > > > [text]do=/usr/sbin/zip [file_name].zip [file_name][/text]> > > > [shell]> > > > [do]> > > > [/shell]> > > >> > > > i tried [raw] around it - nothing....> > > > i'm thinking to do a shell script but i'd still have to pass the variable> > > > [file_name] to it...> > > >> > > > any ideas?> > > >> > > > On Thu, 27 Mar 2003, Kalin Mintchev wrote:> > > >> > > > > 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 file> > > > >> > > > > is the same as> > > > >> > > > > gzip file> > > > > mv file.gz file.zip> > > > >> > > > > not 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/> > > > >> > > >> > > > -------------------------------------------------------------> > > > 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:
Latest compatible Apache (2006)
Template Encrypt Speed (1998)
Filemaker Pro and [convertchars] (2000)
how to know the [LineIndex] number webcat generated during a [AddLineItem]? (2000)
Mac v. NT (1998)
Purchae error - Fixed to a degree (1997)
URGENT: WebCatalog 2.0 (1998)
Online reference (1997)
Add to Cart & List of Products (1997)
Catalogs and W* (1996)
Two stores, one server (1998)
Purchased cart being overwritten - still !?? (1997)
2nd WebCatalog2 Feature Request (1996)
WebCatalog/Mac 2.1b2 New Features (1997)
Max Record length (1997)
Claris HomePage messes up the code (1997)
[WebDNA] plupload ? (2012)
Search all Fields in a db (1997)
taxrate (1999)
WebCat2b13MacPlugIn - More limits on [include] (1997)