Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>terminal startup problem

terminal startup problem

cormon
03-28-2006, 11:50 AM
Hi ,
I'm relatively new to Darwin so please bear with me. Heres my problems.

1
*****************************************************
When i open up a terminal windows I get

Darwin/kevincornally:$ qcd;

and then the window closes straight away.

IF I choose File / Library and choose i script called login (unsure If i created this myself) I get

login:qcd; exit
Password:

thuis allows me to log in alright but this is a pain.

I know I may have altered the login script incorrectly but am unsure as to to this is to alter it . Any help would be great.

*******************************************************
2

when i issue the clear command I get

terminal database is inaccessible.

********************************************************

thanks in advance for any help.

tbsingleton73
03-28-2006, 11:56 AM
Which version of OS X are you using?
What are you trying to log into?

hayne
03-28-2006, 11:57 AM
First read this Unix FAQ (http://forums.macosxhints.com/showthread.php?t=40648), especially the section about shell customization.

Then remove (or just rename) all of the relevant "dot" files - e.g. ~/.profile, ~/.bash_profile, ~/.bashrc
And remove the file "com.apple.Terminal.plist" from ~/Library/Preferences
( ~ = your home folder)

Then open a new Terminal window and see if the problem is still there.

cormon
03-28-2006, 12:03 PM
OSX version 10.3.9 .Trying to log into terminal to do some learn basic scripting.

I will try hayne suggestions . Thanks for the speedy replies.

cormon
03-28-2006, 12:21 PM
deleting "com.apple.Terminal.plist" did the trick. Out of interest I though ~/.profile, ~/.bash_profile, ~/.bashrc where in my home folder but even a ls -a is not showing them . Am I looking in the wong location for them, all i have is .bash_history.

Thanks again for the relevant and speedy replies. much appreciated .

hayne
03-28-2006, 12:33 PM
Out of interest I though ~/.profile, ~/.bash_profile, ~/.bashrc where in my home folder but even a ls -a is not showing them . Am I looking in the wong location for them, all i have is .bash_history.

You aren't being clear. I assume you meant to say "were" instead of "where".
So if these files were in your home folder, how did you see them if not with 'ls -a' ?
Or maybe you meant to say that these files were not in your home folder. That is normal - they don't exist by default (as was mentioned in that Unix FAQ I recommended reading earlier).


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
bash not using my .bas
Applescript: Hide Proc
help with installing p
Mozilla install from d
ssh - don't want to us
Escaping quotes in Tig
Terminal Keybindings 
JAVA help, please! 

News Archive

Displaying Images on t
Install Office from th
Terminal Problem...? 
cc1plus not executable
desktop icons.. 
at & growlnotify 
unknown terminal type 
scp arbitrary files 
What and why is a 'Dis
permissions already me

Related stories:

chmod for etc directory
mounting SCP/SFTP
Fink or Darwin?
man pages for bash builtin commands
Help killing cron runs
navigating to /Volumes (Help with Ditto)
Problem with outogenerated mail from apache / mysql

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics