LinuxQuestions.org
Register a domain and help support LQ
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 04-05-2015, 12:17 PM   #1
sunoc
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled
Bash covertly executing command


Hi all,

So ever since I installed livestreamer yesterday, oftentimes when I execute a command in bash it seems to be executing livestreamer and treating everything I actually entered as arguments. For example, I will type

sudo emerge -cav livestreamer

and I will get an error messaging advising me not to run livestreamer as root.

This seems to happen 100% of the time when the command I intend to issue refers to livestreamer in any way, and only some of the times when it doesn't.

I'm pretty new to linux, and I've been able to google my way out of a few problems so far, but this one has me baffled. I've checked my bashrc file for things out of the ordinary, but to no avail. Any and all help would be really appreciated. If I've left anything out let me know.
 
Old 04-05-2015, 03:43 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,577

Rep: Reputation: 107Reputation: 107
If you execute emerge xyz, you install the program.
 
Old 04-05-2015, 04:19 PM   #3
sunoc
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the response.

Sorry, but I'm not sure I understand what you mean. I think what I wrote in the OP might be a bit unclear.

Ever since installing livestreamer yesterday, whenever I try to execute emerge [something], bash seems to be interpretting this as livestreamer [something]. For another example, if I try to run

emerge --ask libreoffice

I get the error message

usage: emerge [OPTIONS] [URL] [STREAM]

which would be the correct error message if I actually issued a livestreamer command, except of course that it would say livestreamer instead of emerge.

But it isn't limited to just emerge. If I try, say, sudo equery [xyz], I will get the error message mentioned in the first post.

I just don't have the basic under-the-hood understanding of Linux required to being to figure out what exactly is the problem here. I spent a very long time installing Gentoo and getting it to the point I'm at now, so I'm very hesitant to uninstall or reinstall, but it's basically unusable at the moment.
 
Old 04-06-2015, 02:57 AM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,577

Rep: Reputation: 107Reputation: 107
To check out what options a program needs:

info <program>.

Have you read the gentoo handbook?

Last edited by Keruskerfuerst; 04-06-2015 at 05:31 AM.
 
Old 04-07-2015, 12:27 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Sounds like you have an alias or something borked in your system and is being executed instead of emerge.

I know its cliche but have you rebooted the system?
 
Old 04-07-2015, 02:04 PM   #6
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 269

Rep: Reputation: 83
Yes, looks like some insane alias or symlink.

You can view your aliases with
Code:
alias
And

Code:
file $(which emerge)
should tell you that it is a symlink to "python-exec". And python-exec should call /usr/lib/python-exec/python<version>/emerge. Can you call that directly?

Last edited by cepheus11; 04-08-2015 at 09:25 AM. Reason: typo in path to emerge
 
Old 04-08-2015, 08:30 AM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
You might also check your prompt strings - these can also be used to invoke programs, as is frequently done to indicate a current directory.
 
  


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
Executing command in bash script as a different user? homer_3 Programming 6 03-14-2014 11:47 AM
bash script: executing string command chuckj Programming 8 06-17-2010 08:22 AM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 12:21 PM
bash - difference between executing program in for loop and typing each command? jlarsen Programming 14 11-10-2008 06:38 PM
Trivial bash question - executing $COMMAND atom Programming 4 06-05-2005 05:17 AM


All times are GMT -5. The time now is 11:55 AM.

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