Re: help with exec in glade



are you using fork? if you are not using fork this happens,

when you execute your other executable, the control is transferred  to the shell and the GTK Application will not get it unless the shell finishes it, if you are not using fork, try using fork - execl in the child task.( so that you can kill that child task).
 

satyajit parekh wrote:

i need help desperately with the following problem

i have a  executable binary file which can be executed from command line with a few command line arguments

it executes perfectly from command line

i created a interface using glade to obtain the values of these parameters from the application user. on clicking a button OK the values entered in the interface are passed to and stored as some variables.

i need to execute the binary file with these arguments
from within the interface itself

i tried using
exec ("file-path-name", "arg1, arg2,..") in callbacks.c
it doesnt execute

can i use exec in this case? or is it some other func/syscall?
if yes which file do i add the "exec"command to ? is it main.c or is it callbacks.c or someother file

please help

waiting for ur quick replies
thanx
sap
 


Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
-- 
Unix is user friendly ...  It's just picky about it's friends.
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]