calling external programs

Hi everybody,
I am trying to do a simple app in wich I’d like to call external
programs to buttons callbacks.
I 've tried either with system() and spawn() together with “pterm
progrname” but I cannot launch
external programs.
Any suggestion?
Thanks in advance ,
Francesco

Francesco Jatta wrote:

Hi everybody,
I am trying to do a simple app in wich I’d like to call external
programs to buttons callbacks.
I 've tried either with system() and spawn() together with “pterm
progrname” but I cannot launch
external programs.
Any suggestion?
Thanks in advance ,
Francesco

system( “YourExtProgram” );

or

spawnvp( P_NOWAITO, (char const *)“YourExtProgram”, (char const * const
*) argv );

Did you give your program with full path name or define your environment
PATH correctly
so that your program can find your external program?

Regards


WeiBing Tong

Aquila Mining Systems Ltd.
1450 City Councillors, Suite 330
Montreal, QC
Canada H3A 2E6
Tel: (514) 874-9917 ext 239
Fax: (514) 874-4005
Email: wbtong@aquilamsl.com