LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2016, 01:22 PM   #1
albowman
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
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:rogram_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!
 
Old 02-12-2016, 01:45 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,356

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
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.
 
Old 02-13-2016, 04:47 AM   #3
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,610

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bash script - don't understand error itsnew2me Linux - Newbie 4 11-24-2012 08:57 AM
i have tried to view this error message don;t seem 2 understand shygvy Programming 1 05-14-2012 12:44 PM
[SOLVED] I don't understand this error message... ScottSmith Programming 3 11-16-2009 11:57 AM
Don't understand dependency error johngcarlsson Linux - Newbie 2 05-29-2008 07:49 PM
I don't understand this error FowlProgrammer Linux - Newbie 4 02-18-2007 08:42 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration