Re: Attaching to a running CMUCL process

Pascal Bourguignon <[email protected]>
Newsgroups gmane.lisp.cmucl.general
Organization InformatiMago.
Message-ID <[email protected]>
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.informatimago.com/
Wanna go outside.
Oh, no! Help! I got outside!
Let me back inside!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.