PDA

View Full Version : Terminal problems after uninstalling F@H




nslyax
Jul 8, 2004, 01:24 PM
I tried running F@H on my ibook, but it seemed to get too hot. I had the command line version and after uninstalling I now get ths every time I launch terminal:

/Applications/Utilities/fah4; exit
Nicks-ibook:~ nslyax$ /Applications/Utilities/fah4; exit
-bash: /Applications/Utilities/fah4: No such file or directory
logout
[Process exited - exit code 127]

I also had the single CPU add on of mc68k (http://calnet.sdsu.edu/mc68k/) installed, but used "rid" as instructed by the read me.

I have checked "~/.profile" and "/etc/profile" and can find nothing that seems to call anything on start. Also, if it matters, I only have the trouble with terminal, X11 runs fine.



zimv20
Jul 8, 2004, 01:54 PM
check yer .login and .tcshrc

nslyax
Jul 8, 2004, 02:59 PM
check yer .login and .tcshrc

I can't seem to find either file in my home. Unless there is a master of either file elsewhere?

zimv20
Jul 8, 2004, 03:49 PM
what are the contents of your /etc/crontab ?

bousozoku
Jul 8, 2004, 03:50 PM
I can't seem to find either file in my home. Unless there is a master of either file elsewhere?

If you're simply looking using GUI, you won't see them since they're hidden files. Also, I think you'll want to look for .bashrc instead of .tcshrc since you seem to be using the bash shell.

nslyax
Jul 8, 2004, 03:53 PM
# /etc/crontab
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday who command
#
#*/5 * * * * root /usr/libexec/atrun
#
# Run daily/weekly/monthly jobs.
15 3 * * * root periodic daily
30 4 * * 6 root periodic weekly
30 5 1 * * root periodic monthly

and no, not looking in gui, using "ls -a" in X11, which seems unaffected

zimv20
Jul 8, 2004, 04:02 PM
crontab looks good. from a terminal, please execute:
echo $SHELL
and report back

nslyax
Jul 8, 2004, 04:04 PM
Nicks-ibook:~ nslyax$ echo $SHELL
/bin/bash

zimv20
Jul 8, 2004, 04:12 PM
did you find a .bashrc in your home?

nslyax
Jul 8, 2004, 04:15 PM
none in home, but /etc/bashrc contains the following:

# System-wide .bashrc file for interactive bash(1) shells.
PS1='\h:\w \u\$ '
# Make bash check it's window size after a process completes
shopt -s checkwinsize

zimv20
Jul 8, 2004, 04:46 PM
i don't know why that's happening. but i do have a workaround:
% sudo touch /Applications/Utilities/fah4
% sudo chmod 755 /Applications/Utilities/fah4

nslyax
Jul 8, 2004, 04:46 PM
In Terminal preferences I changed the shell is opens, and the same thing happens. zsh, tcsh, csh, and sh, so it is presumably not related to the specific shell.

nslyax
Jul 8, 2004, 04:51 PM
Your workaround would be OK, except that after calling fah4, it tells the shell to exit. When I open a new shell, the command is called again, and exits again. Hence, the terminal is useless.

Thanks for all your help though.

zimv20
Jul 8, 2004, 06:43 PM
after calling fah4, it tells the shell to exit.
oops.

i think i'm out of ideas, then.

bousozoku
Jul 8, 2004, 08:08 PM
What instructions did you originally use to install the console version of folding@home?

nslyax
Jul 8, 2004, 08:24 PM
To install the console version I followed Stanford's instructions (http://folding.stanford.edu/OSX/OSX.html#console). Then when I installed mc68k's add on, I followed the instructions in the read-me for install and uninstall.

cjc343
Jul 9, 2004, 07:14 PM
Download fah4 and put it in "/applications/utilities" when you start up terminal, what does it say now?

Also, where are you starting terminal from?

nslyax
Jul 10, 2004, 01:41 AM
Folding at home runs now whenever I open terminal. If I quit FAH though, it exits the shell. If I open a second terminal window, it attempts to start a second instance of FAH4.

I am opening terminal from the shortcut in my dock to the Terminal.app in Applications/Utilities.

My real problem with this whole thing isn't that it wants to run FAH4 (ZIMV20's last post helped me around that), but that it exits the shell as soon as I leave FAH4 (notice that it says "...; exit" in the instruction).

I am beginning to wonder if it would be easier to just reinstall Panther next weekend. Not that I need access to the Terminal that bad, but it would fix my problem.

nslyax
Jul 10, 2004, 02:45 AM
I fixed it, WOOOOOOO!

I figured it would be some hidden unix file created on the 7th, when I first started having troubles. I used the finder's find command to search for files created in the last week, both visible and invisible. I came across the "com.apple.Terminal.plist" file and decided to have a look inside. Sure enough, under one of the options, was the command "/Applications/Utilities/fah4; exit".

I deleted the command, relaunched Terminal, and all seems fine.

Thank you all for your time and effort.

nick

cjc343
Jul 10, 2004, 03:24 PM
:) I'm glad you fixed it.