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 > Terminal Problems

Terminal Problems
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Mar 20, 2007, 01:44 PM
 
Problem: Everytime I open Terminal, Terminal keeps executing a bash script I have written a few days ago. I try "New Shell & New Command" but still, Terminal keeps executing the bash script. I can not get a clean terminal where I can enter commands in.

How do I reset Terminal or stop this script from executing upon opening Terminal? I tried Apple technical support but my support ran out.

I know the script is not the problem because I've been using it for some days now with no problems. The only thing I can think of that might be causing this problem is, in Terminal, I clicked Terminal in the menu bar then Window Settings. This brings up a window with a header called terminal inspector. I choose the drop down menu and clicked "Window" from there, I changed the dimensions from 80 20 to 80 40 then clicked "Use Settings as Defaults". I believe I had the script running when I clicked "Use Settings as Defaults" so this may be the cause of the problem I am having.

Any thoughts, I would really like to get back to learning about Terminal.
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Mar 20, 2007, 05:28 PM
 
Originally Posted by mr.dan.watson View Post
Problem: Everytime I open Terminal, Terminal keeps executing a bash script I have written a few days ago.

How do I reset Terminal or stop this script from executing upon opening Terminal?

The command probably got saved into the prefs file.
If you read it, the "ExecutionString" should be blank:

defaults read com.apple.Terminal | grep ExecutionString

ExecutionString = "";

If it's not blank, I believe the fix should be as simple as:

defaults write com.apple.Terminal ExecutionString ""


Or -- in the GUI -- do a Save As... and clear out the string under "Execute this ..."
and select the radio button for "Execute the default..."

Else, just trash ~/Library/Preferences/com.apple.Terminal.plist and start over.
-HI-
     
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Mar 21, 2007, 01:36 AM
 
"Else, just trash ~/Library/Preferences/com.apple.Terminal.plist and start over."

Everything works perfectly now. Now I can get back to learning more terminal. Thank You
     
   
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 05:32 PM.
All contents of these forums © 1995-2009 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.4 © 2000-2009, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2