Invoking system calls from Gtk+2.0

After some great fun in programing with the Gtk+2.0, I had to invoke system calls i.e. communicate with the system from the Gtk application.

I googled a lot for it and found two good options :
1. using system() function
2. using execv() function

Though execv() is more specific , I used the system() function in my program, initially.

e.g. system(“ls -l”);

this will work as the usual ls -l .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s