On Fri, 26 Dec 2003, Paul.Igodt wrote:
Can anybody give a short example of how I can ask in a pascal program to start another application.
Assume, I want to start "Ghostview" (command name "gv") with filename "test.ps" as parameter, i.e. execute "gv test.ps"
How do I program that in GPC?
Thanks a lot. Good holidays to you all!
Paul
This tiny program works fine on my linux (SuSe 8.2) with gpc version 20030830, based on gcc-3.2.3
PROGRAM t; uses gpc; { <-- this is needed !!} var rc: integer; {takes the return code} BEGIN rc:= execute ('ls -l'); writeln ('ReturnCode=', rc) END.
Happy Christmas to all Ernst-Ludwig