in reply to Re: backtick ignores parameters
in thread backtick ignores parameters

These are not URL-encoded parameters -- i am invoking the program internally, so the command gets sent to the webserver OS.

Replies are listed 'Best First'.
Re: %20
by krujos (Curate) on May 20, 2002 at 19:28 UTC
    A, Sorry if this sounds mean, I dont intend to be, but did you try it?
    B, I went back and checked out some old scripts. I had this problem as well a long time ago. I ended up using a question mark to between the params and that worked. I am not sure why exactly (darn this getting old thing). If any monks have some insight to the question mark thing I would be grateful.
    let this be a lesson to me to comment code better.

    update changed formatting...
    also, when you run things from the command line, the shell translates it first. I dont think it works the same way from inside the script. Agian please correct me if I am wrong.
    Thanks Josh
      Actually I did try after all :) , just to cover all angles -- tried every variation (with and without ?, with and without &, etc). No luck. You are apparently right about it working differently from within a CGI script ... (see responses below).