LuCiaNo - CeTre <[EMAIL PROTECTED]> wrote:          James Keeline wrote:
>
> --- Waqas Habib <[EMAIL PROTECTED] 

> > I have an .sh file and i want to run it from my php script, how can 
> i do it.
> > I did use the function shell_exec, exec but it does not show working.
> >
> > e-g
> >
> > shell_exec("./abc.sh")
> >
> > Any help..?
> >
> > -Waqas Habib

-----------------------

> Many servers are configured to not allow execution of Bash scripts 
> from the web
> space. You will have to move it outside the web space and give a full 
> path in
> a command like shell_exec().
>
> James
>

--------------------------------

Maybe if you run:

shell_exec("/bin/sh abc.sh");

or

shell_exec("sh abc.sh");

Try it.
  -----------------------------------------------------
   
  i have tried it and from my previous attempt, it runs the script i-e if i 
write
   
  shell_exec("./abc.sh");
   
  it executes it, but if i have any other file which runs from terminal as,
   
  ./Aserver 6666
   
  and i try it in my php script, it does not run it i-e
   
  shell_exec("./Aserver");
   
  and if i write this command in my abc.sh, it runs my script but does not run 
"Aserver".
   
  Any idea...?
   
  Is there any limitation in my apache server....?
   
  Thanks.
   
  -Waqas Habib

  -----------------------------------


                           

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Non-text portions of this message have been removed]

Reply via email to