List Info

Thread: Attaching to a running CMUCL process




Attaching to a running CMUCL process
user name
2006-11-02 14:33:10
Larry Clapp writes:
> On Wed, Nov 01, 2006 at 10:09:55PM +0100, Pascal
Bourguignon wrote:
> >   su - user -c 'screen -d -m any-program' 
> > 
> > doesn't work.  So you cannot use it for processes
launched at boot
> > time, if not under root.
> 
> I don't understand.  If you want "su - user"
to work unattended, I
> thought you had to be root.

Yes, su is done by root, screen is run under the user
account.
 
> Running this in a normal (not-at-startup) root window
works for me:
> 
>   su - lmc -c '. ~lmc/.zshrc ; screen -S lmc -d -m vim'
> 
> What problems do you encounter?

Well it appears the problem was that I had screen statements
in ~/.screenrc

With:

   su - $u -c ". ~$u/.bashrc ; 
               screen -c ~$u/.screenrc-daemon -S $s -d -m
vim'

and no screen statement in ~$USER/.screenrc-daemon
it works better.


-- 
__Pascal Bourguignon__                     http://www.informatimag
o.com/
Wanna go outside.
Oh, no! Help! I got outside!
Let me back inside!

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )