[Gambas-user] command EXEC

Benoit Minisini gambas at ...1...
Tue Apr 6 20:45:21 CEST 2004


On Tuesday 06 April 2004 20:04, Frank Berg wrote:
> hi,
>
> i try to code an GUI for the capisuite ISDN Capi answer maschine in suse
> 9.0, and now i try to play the voice file
>
> exec ("play","path/to/voicefile.al") wait
>
> if i write the play command in the console, sox is playing the recorded
> voice file, but if i execute this in gambas, there is an error text: sox
> cannot play the file: filename or path not found
>
> there are 2 users on my maschine... root and my.. both with same error
>
> the path ist over all dir structure set to permission free for user: root
> and group: users
>
> what is wrong??
>
> frank

Be careful: are you sure that your path is not transformed by the shell ? EXEC 
does not transform anything!

In other words: EXEC is different from a shell command. To have an equivalent, 
replace EXEC [ ... ] by SHELL "..."

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list