I have tried using system() calls as well, however I would really like for the script files to run (and terminate) concurrently with the GUI (ie. multitask). I want the script files to "run in the background", so that the user can still click in the GUI and not having to wait until the script file has finished running.
I have tried making the button run xterm and then run the script file, however the xterm window just pops up and then disappears, or sometimes not show up at all. The script files are just scripts that configure and make some applications that are stored in the home directory. After the script file has "executed", I go to the folders that the script file should have configured and maked, but it seems like it hasn't done anything at all.
I hope you can see why I would like the script files to multitask with the GUI, as some programs take quite a while to compile, configure and make. Having the GUI not responding to user's clicks while the script file is running makes it look like the GUI has "hung", and doesn't produce a professional-looking program
Any commentary would be greatly appreciated.