passing arguments to system command
I am calling another executable in my application (C programing) using "system" command
which is user interactive program.
now i want to pass those args in system command only.
system(" executable ");
Executable will expect 1,2 or 3.
1 is to continue
2 for do changes in settings
3 exit from application
how to pass these in to system command
Thanks in Advance