On Monday 30 July 2007 03:29:36 am Aleksey V. Kunitskiy wrote:
> I want to auto start some programs on startup, using init
> My local.start looks like:
> sudo -u user_name screen program
>
> My question is - is it the right way?

You don't have to use screen, but that should work.

> How can I attach next program to existing screen session (by creating new
> buffer in screen session)?

Reading over the manpage, something like this (but "sudo -u"d) should work:
# Create a new screen session, detached, with name
screen -d -m -S system-autostart-foo
# In a named window in that session, run bar
screen -S system-autostart-foo -X at cmd-bar# bar
# In a named window in that session, run baz
screen -S system-autostart-foo -X at cmd-baz# baz

But, I've never tried to use screen in this way, no this is just a guess.  I'm 
sure it's possible to use screen the way you want.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
[EMAIL PROTECTED]                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

Attachment: pgpFwKiWm5eij.pgp
Description: PGP signature

Reply via email to