Hum, I proceed using hb_ProcessRun() if I need to keep the output of
the command,
Else, hb_run()
Example :
local cStdOut:=""
cmd="/usr/"+getenv("home")+"/bin/myprog"
// if I need the output :
hb_Process_Run(cmd,,@cStdOut)
// if I don't need the output and the program must waitthe external
program
hb_Run(cmd)
// if I don't need the output and the program must not wait the
external program
cmd+=" &"
hb_Run(cmd)
A+
--
Alain Aupeix
Sites web : JujuLand | Pissobi-Lacassagne
|
Gadel
X.ubuntu 16.04 | H.arbour 3.2.0-1 (r2025-08-22 10:00) |
Hw.gui 2.23-8dev (r3792) | G.ramps 5.1.2