LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Starting screen + rtorrent at boot (https://www.linuxquestions.org/questions/linux-software-2/starting-screen-rtorrent-at-boot-585377/)

Per M. 09-17-2007 04:38 PM

Starting screen + rtorrent at boot
 
I would like to start rtorrent in a screen session as a normal user called "proog". This needs to be done when the system starts so that rtorrent in the screen automatically runs in the background. The distribution is Debian Etch and the system does not have a GUI.
Thanks in advance.

- Per

AlucardZero 09-17-2007 08:55 PM

man screen:
Code:

      -d -m  Start screen in "detached" mode. This creates a new session but doesn’t attach  to
              it. This is useful for system startup scripts.

use that in the user's crontab. there's a special flag "@reboot" available for use in crontabs.

thekore 09-22-2007 04:57 AM

Can you provide a sample use of the @reboot flag in a crontab - I am too trying to o something like this. Thanks in advance.

AlucardZero 09-22-2007 09:11 AM

Code:

@reboot screen -d -m /usr/local/bin/irssi
not hard.

Per M. 09-28-2007 09:16 AM

Thank you very much.


All times are GMT -5. The time now is 10:14 PM.