Forum Discussion
jlats2
Occasional Contributor
6 years agoRunning binary file in Linux "with inputs"
Hello, So I am new to linux and binary files so please bare with me and feel free to correct me for my horrid use of terminology. So I have a main.c file which I am able to make into a binary file ...
AnilErinch_A_Intel
Frequent Contributor
6 years agoHi
You can use the argv and argc as arguments to your main function then achieve the expected behavior.
Please see the external link below for some step by step example.
https://www.thegeekstuff.com/2013/01/c-argc-argv/
Thanks and Regards
Anil