Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > bash startup files

bash startup files
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Feb 15, 2004, 11:56 AM
 
Every time I start up Terminal I get the following error:

-bash: /usr/ebiotools/staden/staden.profile: No such file or directory


This is from the staden package that I had previously installed and since removed, but I'm not sure why it is still being called when I start Terminal. If I then launch a tcsh shell from within Terminal and then another bash shell, it doesn't happen. It only happens when I open a new Terminal window or when I launch Terminal.

I've deleted my .bashrc and .bash_profile files and replaced them with empty files.

Any help?

thanks,
kman
     
Professional Poster
Join Date: Jun 2000
Status: Offline
Reply With Quote
Feb 15, 2004, 02:44 PM
 
Is it maybe in your .login file?
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Feb 15, 2004, 03:33 PM
 
I don't seem to have a .login file in my home folder. Does it reside somewhere else?

kman
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Feb 15, 2004, 03:57 PM
 
Look for dot files ending in rc (runcom) in your home directory. Have you checked for an invisible directory in your home directory that could be related to the staden package? The install for an application should never put anything in /usr. Yuck!

After your weekly maintenace script, you can use 'locate staden' to see if there are oher remants or download the source again and read the configure file to see what is installed where.

Craig
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Feb 15, 2004, 04:16 PM
 
You could check the system-wide rc files in /etc. For example, /etc/bashrc is in there, as well as a bunch of csh files and others.
     
Professional Poster
Join Date: Jun 2000
Status: Offline
Reply With Quote
Feb 16, 2004, 10:33 AM
 
Originally posted by kman42:
I don't seem to have a .login file in my home folder. Does it reside somewhere else?

kman
The only .login I know lives in your home folder. Since it starts with a . it will be hidden. Try 'head .login' and then you'll know for sure.
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Feb 16, 2004, 11:07 AM
 
Originally posted by Turias:
You could check the system-wide rc files in /etc. For example, /etc/bashrc is in there, as well as a bunch of csh files and others.
Thanks, it was in /etc/csh.login

kman
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Feb 17, 2004, 12:18 PM
 
Originally posted by kman42:
Thanks, it was in /etc/csh.login

kman
I spoke to soon. There were some lines in this file referring to that directory, but even after deleting them I still get the error.

kman
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 17, 2004, 04:51 PM
 
Yes, why would bash read a tcsh init file. You might want to keep track about all the changes you apply to these files, especially the ones in /etc and keep backups of the original ones.

A list of files read upon startup by shells: http://www.faqs.org/faqs/unix-faq/fa...section-6.html.

-
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Feb 17, 2004, 05:16 PM
 
Originally posted by Moonray:
Yes, why would bash read a tcsh init file. You might want to keep track about all the changes you apply to these files, especially the ones in /etc and keep backups of the original ones.

A list of files read upon startup by shells: http://www.faqs.org/faqs/unix-faq/fa...section-6.html.

-
Cool, thanks! It was in the /etc/profile file.

kman
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:48 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2