Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Launching the terminal executes my script

  • 26-06-2003 02:49PM
    #1
    Closed Accounts Posts: 1,325 ✭✭✭


    Hey people,

    Please move if you feel it would be appropiate to.

    I didn't know wheither to put this here or in the Unix forum. This happened in Mac OS X 10.2.6 so that's why I'm asking here.

    Thing is I wrote a script (my bad). I was changing it about a bit and that kind of thing and then running it to check to see if it was working as it should. The script is very basic. It uses sudo to change to root and then just simple copies a few files and then tars them up.

    So after I wrote the script, I did a chmod 777 on it to make it executable (double - clickable)

    AND now.......
    Everytime I lauch the terminal it will run the script I wrote. Therefore leaving it impossible for me to use the terminal GAH!!!

    Has anyone got any ideas or experienced this before?? I'm not coming up with any ideas from google (my searching skills just don't seem up to scratch). Have I set some sort of preference in the terminal that always runs that script?? I've checked the Terminal>preferences and the Terminal>windows settings. Why is the terminal dependant on the script being there??

    I'm at a lose.
    Rgds,
    A.


Comments

  • Closed Accounts Posts: 1,325 ✭✭✭b3t4


    Phew......

    Fixed the problem.

    Some how I had managed to chage something in the .plist file for the terminal.

    FYI
    Located at myUsername/Library/Preferences is an invisible file called com.apple.Terminal.plist (invisible file)
    It had a key called Execution and the string for it contains the path to the script I wrote.

    Just letting ye know in case anyone has the same problem in the future.

    Rgds,
    A.


  • Banned (with Prison Access) Posts: 5,154 ✭✭✭Oriel


    Ha Ha! :D


Advertisement