Executing a C program from a script
I currently execute a C program (example: /bin/cprogram) from a command prompt including passing a 600 character string within double quotes, and an output file name (example: /usr/outputfile).
Example:
$ /bin/cprogram "very long string with spaces, special characters, but no double quotes, etc etc" /usr/outputfile
Question: How would I write a shell script to receive that 600 character string and the output file name as input variables and then execute that same C program?
|