On Sat, 04 Jul 2009, vszak...@users.sourceforge.net wrote: > Revision: 11636 > > http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11636&view=rev > Author: vszakats > Date: 2009-07-04 07:17:00 +0000 (Sat, 04 Jul 2009) > Log Message: > ----------- > 2009-07-04 09:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) > * utils/hbmk2/hbmk2.prg > * commandResult() merged into hbmk_run(). > This also means that 'getFirstFunc()' will now use > hb_process*() API on non-DOS platforms to retrieve > stdout output of 'nm' command executed. > ; Przemek, could you please review this logic? It may be > wrong according to one of your recent mails. In this > case, maybe the temp file method should be used on all > platforms.
It's OK because only one file handle is used so deadlock cannot appear. Anyhow adding new function: hb_processCommand( <cCommand>, [<cStdIn>], [@<cStdOut>], [@<cStdErr>] ) -> <nResult> seems to be good idea. Such command can be implemented for all platforms (if necessary using intermediate temporary files) so you could use it without any problems in all builds. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour