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 > macOS > terminal automatically runs command when i open it

terminal automatically runs command when i open it
Thread Tools
oni
Forum Regular
Join Date: Oct 2002
Location: Palmy North, New Zealand
Status: Offline
Reply With Quote
Jun 27, 2004, 10:55 PM
 
I have installed pascal-fc on my computer for a concurrent programming paper. Now everytime i opne the terminal it runs the pascal-fc compiler. How do i make the terminal just open normally?

Cheers
     
MacGorilla
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Jun 27, 2004, 11:26 PM
 
Assuming you are using 10.3, check out your .profile and .bashrc and see if there are lines there that make it autostart, if so, delete them.
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
oni  (op)
Forum Regular
Join Date: Oct 2002
Location: Palmy North, New Zealand
Status: Offline
Reply With Quote
Jun 28, 2004, 09:33 AM
 
I am using 10.3.
I am using the tcsh shell not bash and I have looked in .tcshrc, nothing in there that I can see would auto start it.
Where is .profile stored? I can't see it in my user folder.
     
absmiths
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jun 28, 2004, 10:21 AM
 
Originally posted by oni:
I am using 10.3.
I am using the tcsh shell not bash and I have looked in .tcshrc,
Have you also looked in ~/.cshrc? I use the tcsh shell as well and I have all of my login stuff in .cshrc.
     
oni  (op)
Forum Regular
Join Date: Oct 2002
Location: Palmy North, New Zealand
Status: Offline
Reply With Quote
Jun 30, 2004, 07:38 AM
 
Still no luck, tried looking in .cshrc, with nothing about launching pascal-fc.
Any other ideas?
     
iNeusch
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status: Offline
Reply With Quote
Jun 30, 2004, 08:23 AM
 
Maybe you've saved a terminal window with a command in it
Try to put you terminal prefs to the trash (don't empty it !) and launch terminal
     
oni  (op)
Forum Regular
Join Date: Oct 2002
Location: Palmy North, New Zealand
Status: Offline
Reply With Quote
Jun 30, 2004, 09:05 PM
 
That was the problem.

I looked through the terminal prefs and found a line that says
<key>ExecutionString</key>
<string>/Users/martin/pfc-gnu-sources/pfccomp; exit</string>

Should i delete these lines? or the whole prefs file?

Thanks for the help guys
     
iNeusch
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status: Offline
Reply With Quote
Jul 1, 2004, 01:47 AM
 
Originally posted by oni:
That was the problem.

I looked through the terminal prefs and found a line that says
<key>ExecutionString</key>
<string>/Users/martin/pfc-gnu-sources/pfccomp; exit</string>

Should i delete these lines? or the whole prefs file?

Thanks for the help guys
Try to delete the lines, it should work
     
   
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
Top
Privacy Policy
All times are GMT -4. The time now is 05:14 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,