Bitcoin Forum

Bitcoin => Mining => Topic started by: jondecker76 on May 15, 2011, 04:04:02 AM



Title: Starting phoenix/poclbm from linux screen (using .screenrc)
Post by: jondecker76 on May 15, 2011, 04:04:02 AM
I'm trying to set up a screenrc that has windows for bitcoind, an status script, and phoenix..
Everything works great, but I can't get phoenix (or poclbm) to launch automatically when a new screen instance is initiated..  I understand that this is because screen isn't launching phoenix.py from within the pheonix directory - so I get an "Unable to locate kernel" message.  I've tried various tricks such as creating a simple launcher bash script inside the phoenix directory, and referencing that script from within my .screenrc file.  So basically the problem is, neither phoenix or poclbm will run unless launched from their own root directory..  Does anyone know a way around this?

thanks!


Title: Re: Starting phoenix/poclbm from linux screen (using .screenrc)
Post by: CydeWeys on May 15, 2011, 04:06:03 AM
In your script do something like

Code:
cd /path/to/phoenix
python phoenix.py --rest --of --your --params


Yeah, it's so simple you're gonna be kicking yourself for not realizing it  ;D


Title: Re: Starting phoenix/poclbm from linux screen (using .screenrc)
Post by: jondecker76 on May 15, 2011, 05:30:41 AM
tried that (using cd).. the script works if I run it from the command line, but not if invoked by screen (referencing the script from .screenrc)

any other ideas?

here is my .screenrc
Code:
startup_message off
defscrollback 1000


screen -t bitcoin       0 /home/jondecker76/startbitcoind.sh
screen -t phoenix       1 /home/jondecker76/phoenix/startphoenix.sh
screen -t bitcoinclient 2
screen -t aticonfig     3
screen -t status        4 /home/jondecker76/bcstatus.sh
shelltitle "$ |bash"

highlighted                                                                           
hardstatus             alwayslastline                                                                   
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'


and here is my startphoenix.sh
Code:
#!/bin/bash

cd /home/jondecker76/phoenix
python phoenix.py -v -u http://*****:*****@deepbit.net:8332/ -k poclbm device=0 worksize=128 vectors aggression=11 bfi_int fastloop=false



Title: Re: Starting phoenix/poclbm from linux screen (using .screenrc)
Post by: jondecker76 on May 15, 2011, 01:50:51 PM
hmm....  still no luck :(
this is frustrating!