Bitcoin Forum
December 05, 2016, 04:37:31 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Starting phoenix/poclbm from linux screen (using .screenrc)  (Read 2130 times)
jondecker76
Full Member
***
Offline Offline

Activity: 238


View Profile
May 15, 2011, 04:04:02 AM
 #1

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!

RollerBot Advanced Trading Platform
https://bitcointalk.org/index.php?topic=447727.0
BTC Donations for development: 1H36oTJsi3adFh68wwzz95tPP2xoAoTmhC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480912651
Hero Member
*
Offline Offline

Posts: 1480912651

View Profile Personal Message (Offline)

Ignore
1480912651
Reply with quote  #2

1480912651
Report to moderator
CydeWeys
Full Member
***
Offline Offline

Activity: 154


View Profile
May 15, 2011, 04:06:03 AM
 #2

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
jondecker76
Full Member
***
Offline Offline

Activity: 238


View Profile
May 15, 2011, 05:30:41 AM
 #3

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


RollerBot Advanced Trading Platform
https://bitcointalk.org/index.php?topic=447727.0
BTC Donations for development: 1H36oTJsi3adFh68wwzz95tPP2xoAoTmhC
jondecker76
Full Member
***
Offline Offline

Activity: 238


View Profile
May 15, 2011, 01:50:51 PM
 #4

hmm....  still no luck Sad
this is frustrating!

RollerBot Advanced Trading Platform
https://bitcointalk.org/index.php?topic=447727.0
BTC Donations for development: 1H36oTJsi3adFh68wwzz95tPP2xoAoTmhC
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!