Re: starting an external program

From: Han (j.leloux_at_chello.nl)
Date: 11/08/03


Date: Fri, 07 Nov 2003 23:32:42 GMT

Thank's for your quick answers but it's not the solution for this problem.
The use of a test.bat file in the exec() command just works fine.
test.bat is a program that writes a logfile of a ping to the temp dirictory.
Since de file test.bat is in de home directory of apache I even don't have
to use the path direction as in the original example.
the test.bat file contains

ping 213.84.188.39 >c:\temp\test.log

so the scriptline exec('c:\apache2\homepage\test.bat); or
exec("test.bat"); works fine

But adding a extra programline in de test.bat file that starts the
prnfrm.exe file,will write a logfile but doesn't print anything and that is
what de prnfrm.exe file is supposed to do.

"Han" <j.leloux@chello.nl> schreef in bericht
news:EAgqb.8487$di.2527522@amsnews02.chello.com...
> Hi, Iám using een php script with de exec() command to start een external
> program that executes a printcommand and prints two lines on a printer.
> The program itself works just fine, but used in a php-script nothing
> happened.
> I use this scriptline.
>
> exec('c:\apache2\homepage\prnfrm.exe');
> but nothing happen's
>
> I use PHP 4.3 and Apache 2.0
> Does somebody nows the solution
>
> thanks
>
> Han Leloux
> Haarlem Holland
>
>



Relevant Pages

  • Re: wScript.Shell Problems
    ... the completion of the underlying process. ... However, the Exec procedure is ... Here is why i went to the RUN command, it is my understanding that the ... EXEC command does not allow for the BOOLEAN indicating wether the ...
    (microsoft.public.scripting.vbscript)
  • Re: Problem in calling c programs and compiling them in tcl/tk
    ... Are you using Tcl's glob command to do this? ... using exec gcc filename.c and later exec ./a.out filename.c. ... the execution of a command that might generate a Tcl error. ... i can call a c program and compile it? ...
    (comp.lang.tcl)
  • Re: xp_cmdshell default path (system32) problem
    ... exec xp_cmdshell @cmd1 ... - specify the full path in the del command ... ensure that xp_cmdshell ALWAYS executes under the security context of ... I haven't executed the actual erase statements yet but rather have been ...
    (microsoft.public.sqlserver.programming)
  • Re: Literal pipes in [open "|cmd..."]
    ... If it's not an [exec] directive, ... away with the intermediary pipe directives entirely also (or more ... As for a new command with a clean syntax, the only way you're going to ... fileevent $ou write $arg ...
    (comp.lang.tcl)
  • Re: Expect scripting
    ... I reverted to what I am familiar with which is script and used exec ... COMPL is the exact prompt from the remote processor? ... If the command were to be entered to the telnet session to this ... I strongly recommend you read.- Hide quoted text - ...
    (comp.lang.tcl)

Loading