RE : RE : RE : [fpc-devel] Running programs with output redirection

2011-07-17 Thread Ludo Brands
This is all windows though. Cross platform solution: Uses process ... p:=TProcess.Create(nil); {$IFDEF WIN32} p.CommandLine := 'cmd /c diff -r dir1 dir2 diff.txt'; {$ENDIF} {$IFDEF LINUX} p.CommandLine := 'bash -c diff -r dir1 dir2 diff.txt'; {$ENDIF} p.Execute; ... Ludo

Re: RE : RE : RE : [fpc-devel] Running programs with output redirection

2011-07-17 Thread Mark Morgan Lloyd
Ludo Brands wrote: This is all windows though. Cross platform solution: Uses process ... p:=TProcess.Create(nil); {$IFDEF WIN32} p.CommandLine := 'cmd /c diff -r dir1 dir2 diff.txt'; {$ENDIF} {$IFDEF LINUX} p.CommandLine := 'bash -c diff -r dir1 dir2 diff.txt'; {$ENDIF} p.Execute;

Re: RE : RE : RE : [fpc-devel] Running programs with output redirection

2011-07-17 Thread Hans-Peter Diettrich
Ludo Brands schrieb: Cross platform solution: Uses process ... p:=TProcess.Create(nil); {$IFDEF WIN32} p.CommandLine := 'cmd /c diff -r dir1 dir2 diff.txt'; {$ENDIF} {$IFDEF LINUX} p.CommandLine := 'bash -c diff -r dir1 dir2 diff.txt'; {$ENDIF} p.Execute; Looks like this could be