LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New to Linux, don't understand this error (https://www.linuxquestions.org/questions/linux-newbie-8/new-to-linux-dont-understand-this-error-4175572106/)

albowman 02-12-2016 12:22 PM

New to Linux, don't understand this error
 
Hello!
I am new to Linux and I am receiving an error I am not understanding. I am trying to convert *.asc files to another format and the error I am getting is:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_opt ions::multiple_occurrences> >'
what(): multiple_occurrences
Aborted

I have ~1500 files in each directory and I am trying to convert all of them using ./ execute -i /*.asc.

Thank you for your help!

suicidaleggroll 02-12-2016 12:45 PM

No idea what the error means, but I do see some problems in your command.

First, that should be "./execute", assuming the binary is called "execute" and is located in your current directory. "./ execute" (with a space) means something very different.

Second, you're using "/*.asc". That's equivalent to writing "C:\*.asc". Unless these asc files are actually located in the root of the filesystem, it won't work. You need to decide whether you want to use the absolute path or the relative path to the files.

Lastly, most programs can't accept multiple files as input when they use a flag such as "-i". Remember, the shell expands the globbing pattern BEFORE the program ever sees it. So your command becomes:
Code:

./execute -i file1.asc file2.asc file3.asc ...
Unless "execute" is built to accept EVERYTHING after -i as input files (in which case, where does it stop?), which is doubtful, it will break. Instead you would need to loop through the files, and run "execute" on each one individually. Since you haven't told us WHAT "execute" even is or how to use it, I can't provide any further information on that.

ondoho 02-13-2016 03:47 AM

please show us
  • the exact & full command you are running
  • the contents of the script
  • the complete error output
  • ...and all of it in [code]...[/code]-tags


All times are GMT -5. The time now is 04:30 PM.