LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2004, 12:44 PM   #1
blames
LQ Newbie
 
Registered: Oct 2004
Location: Boulder, Co
Distribution: Redhat WS4
Posts: 17

Rep: Reputation: 0
Terminal Executes unwanted command at openning


I was looking at a script that was written for FSL (a data analysis software for Neuroscience). I copy and pasted a command "exec /usr/local/fsl/bin/tixwish" this command should start the program, just to see if it worked. And it does . But now every time I open a terminal the above command is executed automatically. Does anyone know how I can reverse this....

thanks for any replies
 
Old 12-28-2004, 12:49 PM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Where did you copy and paste it to? You're using bash probably, right? you can look in the .bash* files (.bashrc, .bash_profile, etc.) to see if references are made.
 
Old 12-28-2004, 01:00 PM   #3
blames
LQ Newbie
 
Registered: Oct 2004
Location: Boulder, Co
Distribution: Redhat WS4
Posts: 17

Original Poster
Rep: Reputation: 0
No file.. just the terminal window.

I actually copy and pasted it into a terminal window.. no file. That's what I don't understand. Yes I am using bash.

Ok.. I just logged out and logged back in, thinking that it would reset things. When I logged back in, before the Fedora Core 2 screen popped up.. the FSL app opened again and my machine won't continue log in until I close the program..

How do you think typing the command in the terminal window could have effected anything?

thanks
 
Old 12-28-2004, 03:46 PM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
I guess that depends on what the 'tixwish' prog does! Were you logged in as root when you did that? I guess you need this prog on your computer?? Just a guess but maybe look in the /etc/inittab file (or the Fedora equivalent) to see if it's loading there. It could also be set to run in one of the runlevel scripts (rc.0, rc.M, etc.) I guess...maybe... Make sure you know what the prog name is and start looking around!! Let me know where you find it or what you find. I'm curious now!
 
Old 12-28-2004, 04:16 PM   #5
blames
LQ Newbie
 
Registered: Oct 2004
Location: Boulder, Co
Distribution: Redhat WS4
Posts: 17

Original Poster
Rep: Reputation: 0
I found out what was going on.. On the website for the program they have a set of lines to add to your .bashrc file to allow a command line option for opening it. On the webpage they had an extra line which turned out to be a call to the actual command line command. So it was in my bashrc file and I didn't recognize it because I assumed that what was ont their webpage was right.
It was just a coinicidence that I entered the "exec" command and then started noticing the problem.

Sorry for the confusion.. but thank you very much for your help..

cheers!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unwanted packets on terminal harmster Linux - Networking 7 05-07-2005 06:28 AM
c program that executes during a certain amount of time jagman Programming 6 04-13-2005 09:22 AM
Error while openning Gnome Terminal ckota Mandriva 1 01-29-2005 10:21 AM
how do i remove unwanted charaters at "script" command output? linuxzouk Linux - Newbie 4 05-15-2004 07:58 AM
virtual link that executes a shelscript .sh qwijibow Linux - Newbie 3 05-27-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:42 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
Open Source Consulting | Domain Registration