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/
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');
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
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
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
___
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
> 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
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 .*
_
> 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?
>
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,
> > 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:
> 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 .*
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 .*
_
--- 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
[ 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
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
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
17 matches
Mail list logo