c++ - Creating and running a file with command line arguments -


i new linux , apologize if descriptions not savvy. try relevantly detailed.

currently working on terminal using fedora, , goal create smaller data set run program. given example, , mentor said run program had type "./filename" console.

filename has command line arguments follows: "./main ./textfile1 ./textfile2" basically, each argument separated space. tried recreating document similar format, not sure save as, nor work when try running same way file larger data set.

also, filename bold in terminal, whereas document created not. i'm not sure if helps @ all, difference noticed.

any appreciated.

you need set execute bit on file.

chmod +x filename 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -