Re: [fpc-pascal] Exec(), Linux, and /dev/null redirection

2010-02-17 Thread Marco van de Voort
In our previous episode, cobines said: > 2010/2/17 Zitt Zitterkopf : > > Exec( '/bin/mount', '/dev/'+ aline +' /media/' + aline + ' &> /dev/null'); > > Try: > > Exec( '/bin/mount', '/dev/'+ aline +' /media/' + aline + ' 1>/dev/null'); > > for redirecting STDOUT or > > Exec( '/bin/mount', '/dev/

Re: [fpc-pascal] Exec(), Linux, and /dev/null redirection

2010-02-16 Thread cobines
2010/2/17 Zitt Zitterkopf : > Exec( '/bin/mount', '/dev/'+ aline +' /media/' + aline + ' &> /dev/null'); Try: Exec( '/bin/mount', '/dev/'+ aline +' /media/' + aline + ' 1>/dev/null'); for redirecting STDOUT or Exec( '/bin/mount', '/dev/'+ aline +' /media/' + aline + ' 2>/dev/null 1>/dev/null');

[fpc-pascal] Exec(), Linux, and /dev/null redirection

2010-02-16 Thread Zitt Zitterkopf
I'm cross developing a program in free pascal running FreeVision. When running under Linux / Busybox; I'm attempting to mount a device to scan it for a set of files. Since I'm running a TUI (Text User Interface); I cannot have the BusyBox mount command printing failure information to the screen

Re: [fpc-pascal] Exec

2007-01-05 Thread Jonas Maebe
On 5 jan 2007, at 11:31, Carsten Bager wrote: On an Arm/Linux platform I call an external program (to calibrate a touch panel) with "Exec". That works OK. I can force the external program to return some values to the console. Is there a way I can pick up this output and read it from my pro

[fpc-pascal] Exec

2007-01-05 Thread Carsten Bager
On an Arm/Linux platform I call an external program (to calibrate a touch panel) with "Exec". That works OK. I can force the external program to return some values to the console. Is there a way I can pick up this output and read it from my program? Carsten ___

Re: [fpc-pascal] exec with many params

2005-09-02 Thread Michael Van Canneyt
On Tue, 21 Jun 2005, Antal wrote: > in linux I can't use the exec for executing a program with more than one > parameter. > I tried to supply more than a parameter separeted with whitespace, but > it's not reliable, since the program is treating it as just one parameter > > so I can't pass opti

Re: [fpc-pascal] exec with many params

2005-09-02 Thread Marco van de Voort
> in linux I can't use the exec for executing a program with more than one > parameter. "the exce" ? Which exec? Can you provide an example? > I tried to supply more than a parameter separeted with whitespace, but > it's not reliable, since the program is treating it as just one parameter > > so

[fpc-pascal] exec with many params

2005-09-02 Thread Antal
in linux I can't use the exec for executing a program with more than one parameter. I tried to supply more than a parameter separeted with whitespace, but it's not reliable, since the program is treating it as just one parameter so I can't pass options to programs, such as: ls -l .* _

Re: [fpc-pascal] Exec with many params

2005-06-23 Thread Marco van de Voort
> a single parameter when executing a file > let's change the above example to > cat ~/anyfile1 ~/anyfile2 > or just: > dir /p c: > > or anything else, which needs many params > > Anyway, if using the shell() would help in linux, it's a good hint. > But for portability what do I do in other OS? >

Re: [fpc-pascal] Exec with many params

2005-06-23 Thread Florian Klaempfl
Antal wrote: >>>in linux I can't use the exec for executing a program with more than one >>>parameter. >>>I tried to supply more than a parameter separeted with whitespace, but >>>it's not reliable, since the program is treating it as just one parameter >>> >>>so I can't pass options to programs,

[fpc-pascal] Exec with many params

2005-06-23 Thread Antal
> > in linux I can't use the exec for executing a program with more than one > > parameter. > > I tried to supply more than a parameter separeted with whitespace, but > > it's not reliable, since the program is treating it as just one parameter > > > > so I can't pass options to programs, such as:

Re: [fpc-pascal] exec with many params

2005-06-22 Thread Peter Vreman
> in linux I can't use the exec for executing a program with more than one > parameter. > I tried to supply more than a parameter separeted with whitespace, but > it's not reliable, since the program is treating it as just one parameter > > so I can't pass options to programs, such as: > ls -l .*

[fpc-pascal] exec with many params

2005-06-22 Thread Antal
in linux I can't use the exec for executing a program with more than one parameter. I tried to supply more than a parameter separeted with whitespace, but it's not reliable, since the program is treating it as just one parameter so I can't pass options to programs, such as: ls -l .* _

Re: [fpc-pascal]exec and wait

2004-08-26 Thread Alan Mead
--- Marco van de Voort <[EMAIL PROTECTED]> wrote: > [ Charset 0 unsupported, skipping... ] > > (hmm) > > Anyway, don't use unit DOS, it is legacy, but > sysutils.executeprocess > My win32 docs, installed as part of 1.9.4 and stamped '1.9' don't seem to show this function. What are the callin

Re: [fpc-pascal]exec and wait

2004-08-25 Thread Marco van de Voort
[ Charset 0 unsupported, skipping... ] (hmm) Anyway, don't use unit DOS, it is legacy, but sysutils.executeprocess ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]exec and wait

2004-08-25 Thread Peter Vreman
At 19:17 25-8-2004, you wrote: Hi All, How to run an external program (prog.exe) from a FP program and wait until it finishes execution? Thanks! Exec() in the dos unit Peter ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailma

[fpc-pascal]exec and wait

2004-08-25 Thread Jilani Khaldi
Hi All, How to run an external program (prog.exe) from a FP program and wait until it finishes execution? Thanks! jilani ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal