Yeah, it's there, that's why I said "I don't have to bother with sudo
-u" to switch from root to my user.

I still want to know what's killing screen.

Thanks,
-Nick

On 08/04/2009, Mike Erdely <m...@erdelynet.com> wrote:
> On Wed, Apr 08, 2009 at 04:58:38PM -0400, Nick Guenther wrote:
>> I'm trying to make my torrents get started with my server. A script is
>> at http://ubuntuforums.org/archive/index.php/t-859543.html that starts
>> it up in a detached screen session, but obviously the linux-ism of
>> that script won't work here. I pulled out the important bits and just
>> to start off wrote this script which I placed in ~/bin/scr:
>> #!/bin/sh
>> TAG=TAG=`date +%H%M%S`
>> sudo -u kousu -H /usr/local/bin/screen -d -m -S $TAG
>>
>> If I run this script as myself or as root (to simulate running as
>> /etc/rc) it works:
>> $ sh bin/scr
>> $ screen -ls
>> There is a screen on:
>>         21423.152001    (Detached)
>> 1 Socket in /tmp/uscreens/S-kousu.
>
> Try the @reboot entry in your personal crontab.
> That's how I get my tmux session going.
>
> And switch to tmux, it's better. :)
>
> -ME

Reply via email to