Author

Topic: Starting phoenix/poclbm from linux screen (using .screenrc) (Read 2356 times)

full member
Activity: 238
Merit: 100
hmm....  still no luck Sad
this is frustrating!
full member
Activity: 238
Merit: 100
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

full member
Activity: 154
Merit: 100
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  Grin
full member
Activity: 238
Merit: 100
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!
Jump to: