Page 1 of 1

remote control xbox and leave programms running on exit

Posted: Mon Jul 31, 2006 2:44 pm
by maccallan
hi folks,
after 2 years i continue doing gentoox on my xbox.
mainly i have small programs (bitttorrent,..) running that are remote controlled by me from time to time.
what i want to do:
running a commandline bittorrent client (rtorrent) that does not exit when i'm closing the ssh client.

in the past i simply used a vnc server to remote control my p2p sorftware from remote computers but that was too slow and inefficient.

[in the long term i want to have torrentflux (a torrent client with webinterface) running but i just successfully installed the apache and samba server so i'm too frustrated to do more of this stuff now...]

thanks!

Posted: Tue Aug 01, 2006 3:15 am
by orochi
emerge --sync
emerge -av screen
emerge -av bittorrent
screen
bittorrent-curses /path/to.torrent

to exit but keep torrents running type CTRL+A then CTRL+D

to resume login via ssh and type

screen -R


http://www.cyberciti.biz/nixcraft/vivek ... client.php
http://forums.gentoo.org/viewtopic-t-43 ... urses.html

that should be the jist of it, Bittorrent is masked for me so i dont wanna bother going through getting it installed, but theres enough info on google for bittorent-curses or bittorrent headless to get by

Posted: Tue Aug 01, 2006 6:58 am
by zlasher
I'm on a bit of thin ice here - but are you sure you just couldn't start the program with the nohup option?

try doing a

Code: Select all

nohup <bittorrent thingy> &
You'd have to check with

Code: Select all

ps aux | grep <bittorrent thingy>
to see if it's still running - and read the "nohup" file where you started it to see any output..

Read up on nohup on google



Steinar T

Posted: Tue Aug 01, 2006 12:19 pm
by maccallan
@orochi: thanks you're my hero of the day!
screen is a really mighty tool, just the tool i needed.
rtorrent now runs succesfully even if i exit ssh connection.

(sorry zlasher haven't tried the nohup option => will remember that command for other programs :-))

thanks dudes!