Originally posted by mc68k
there is a new switch with v4 that will make it so i dont have to manually set up names and teams anymore...the key is finding the time
in a few weeks time ill much rather work on this than do boring schoolwork. right now im enjoying myself
mc...
What I did, because I have an ancient B&W G3 350 and was curious about the v4 "speedup" was to change my .login to:
alias start 'cd ~/Desktop; ./fah4 -local > /dev/null &'
alias stop 'killall fah4'
alias work '~/.work'
alias rid '~/.rid'
alias pause 'killall -STOP -m "FahCore*"'
alias resume 'killall -CONT -m "FahCore*"'
This partially accounts for the default fah4 installation which tells you to place the fah4 on your desktop which in turn is where everything is installed.
Then I changed .work to:
#!/bin/tcsh
# 2003.04.30 Changed to use folder structure implemented by CEB
# 2003.05.01 Change to support Gromacs log file
# 2004.01.09 Change to support default fah4 installation
# show the logfile contents
echo 'Start of data'
echo
echo 'Process 1'
cd ~/Desktop
cat unitinfo.txt
foreach file (FAHlog.txt)
awk '/Protein/' $file
awk '/Remaining/' $file
tail $file|awk '/[Ff]rame/'
tail $file|awk '/Completed/'
end
# also list the file .arc file for time
# ls -l *.arc
echo
echo 'End of data'
echo
cd
which again, was intended to mimic directory structures and filename (SINGULAR) for the log file. This won't support multiple log files!!! I couldn't help adding in the unitinfo.txt file, as it tells you when the file is due.
Then, for the last step, I redirected the cron startup to:
@reboot cd ~/Desktop; ./fah4 -local
Please note that if you want to rid yourself of fah4, I have not "fixed" that command! I don't know if start, stop, pause or resume will work either, but they looked right so I didn't mess with them.
I think the only thing I "did" was to make the directories match what the stanford fah4 installation actually does.
And I think it's working... but would love to stand corrected if it's foobar.