1 |
On Monday 30 July 2007 03:29:36 am Aleksey V. Kunitskiy wrote: |
2 |
> I want to auto start some programs on startup, using init |
3 |
> My local.start looks like: |
4 |
> sudo -u user_name screen program |
5 |
> |
6 |
> My question is - is it the right way? |
7 |
|
8 |
You don't have to use screen, but that should work. |
9 |
|
10 |
> How can I attach next program to existing screen session (by creating new |
11 |
> buffer in screen session)? |
12 |
|
13 |
Reading over the manpage, something like this (but "sudo -u"d) should work: |
14 |
# Create a new screen session, detached, with name |
15 |
screen -d -m -S system-autostart-foo |
16 |
# In a named window in that session, run bar |
17 |
screen -S system-autostart-foo -X at cmd-bar# bar |
18 |
# In a named window in that session, run baz |
19 |
screen -S system-autostart-foo -X at cmd-baz# baz |
20 |
|
21 |
But, I've never tried to use screen in this way, no this is just a guess. I'm |
22 |
sure it's possible to use screen the way you want. |
23 |
|
24 |
-- |
25 |
Boyd Stephen Smith Jr. ,= ,-_-. =. |
26 |
bss03@××××××××××.net ((_/)o o(\_)) |
27 |
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' |
28 |
http://iguanasuicide.org/ \_/ |