Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] screen + rtorren
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW
View previous topic :: View next topic  
Author Message
quosek
Apprentice
Apprentice


Joined: 07 Mar 2006
Posts: 270

PostPosted: Sat Feb 21, 2009 10:13 pm    Post subject: [SOLVED] screen + rtorren Reply with quote

Czesc
Mam dziwny problem. Jezeli recznie odpale screena, a nastepnie rtorrenta, to wszystko w nim dziala normalnie - czyli ctrl+q wychodzi z niego, ctrl+s startuje zatrzymanego torrenta.
Jednak jezeli odpale rtorrenta ze skryptu :
Code:

screen -d -m rtorrent

to rtorrent startuje normalnie, ale :
- na ctrl+s reaguje caly screen zwicha i nic nie da sie z nim zrobic
- na ctrl+q w ogolnie nie reaguje (jakby wywolywal polecenia)

Ma ktos jakis pomysl o co chodzi, lub jak odpalic rtorrenta w tle by moc do niego wracac ?


Last edited by quosek on Tue Feb 24, 2009 7:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2722

PostPosted: Sat Feb 21, 2009 11:11 pm    Post subject: Reply with quote

dtach moze uzyj zamiast screena?

dtach -n rtorrent.dtachsocket rtorrent tworzy sesje z rtorrentem bez dolaczania do niej, dtach -a rtorrent.dtachsocket wraca do rtorrenta, control-\ wychodzi z dtacha.
Back to top
View user's profile Send private message
quosek
Apprentice
Apprentice


Joined: 07 Mar 2006
Posts: 270

PostPosted: Sun Feb 22, 2009 9:26 am    Post subject: Reply with quote

wielkie dzieki dziala
A dla potomnosci - przywracanie niestety nie moze byc dtach -a, bo wtedy rtorrent uwaza, ze ma caly czas wcisniety klawisz ctrl i lekko wariuje (i zamiast np. strzalki w dol trzeba naciskac ctrl+strzalka). Ale wystarczy go wskrzesic:
Code:

tput smkx;dtach -a /tmp/.rtorrent -e "^T";tput rmkx

i wszystko jest gocior
a - to oczywiscie przemapowuje odlaczanie dtacha na klawisze ctrl+T
Back to top
View user's profile Send private message
gall
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2007
Posts: 142
Location: /home/gall

PostPosted: Sun Feb 22, 2009 10:55 am    Post subject: Reply with quote

Z doświadczenia wiem że czasem zamiast
Code:
screen komenda

lepiej zastosować
Code:
screen
komenda


Ale skoro problem już rozwiązany to tak tylko przy okazji.
_________________
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep
Back to top
View user's profile Send private message
dylon
Guru
Guru


Joined: 21 Mar 2005
Posts: 331
Location: Gliwice

PostPosted: Sun Feb 22, 2009 8:01 pm    Post subject: Reply with quote

Ja sobie zrobilem skrypta takiego:

Code:

#!/bin/bash
screen -S rtorrent -md rtorrent &
delay 2
screen -r rtorrent

_________________
Maciej Dylski
Back to top
View user's profile Send private message
quosek
Apprentice
Apprentice


Joined: 07 Mar 2006
Posts: 270

PostPosted: Mon Feb 23, 2009 7:54 am    Post subject: Reply with quote

tez probowalem taki
ale reakcje przy podlaczeniu byly jak opisalem w pierwszym poscie - braki reakcji na komendy .....
Back to top
View user's profile Send private message
dylon
Guru
Guru


Joined: 21 Mar 2005
Posts: 331
Location: Gliwice

PostPosted: Tue Feb 24, 2009 6:21 pm    Post subject: Reply with quote

wywolaj takie polecenie w konsoli gdzie chcesz uruchomic screen-a i potem zobacz.
Code:
stty -ixon

_________________
Maciej Dylski
Back to top
View user's profile Send private message
quosek
Apprentice
Apprentice


Joined: 07 Mar 2006
Posts: 270

PostPosted: Tue Feb 24, 2009 7:46 pm    Post subject: Reply with quote

dylon - o to chodzilo
mucios gracias
Back to top
View user's profile Send private message
dylon
Guru
Guru


Joined: 21 Mar 2005
Posts: 331
Location: Gliwice

PostPosted: Wed Feb 25, 2009 2:18 am    Post subject: Reply with quote

De nada.

p.s. wrzuc to sobie do bashrc/zshrc/etc... bedzie sie odpalac automatycznie.
_________________
Maciej Dylski
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum