Re: Attaching to a running CMUCL process

Larry Clapp <[email protected]>
Newsgroups gmane.lisp.cmucl.general
Message-ID <[email protected]>
On Wed, Nov 01, 2006 at 10:09:55PM +0100, Pascal Bourguignon wrote:
> H??kon Alstadheim writes:
> > Larry Clapp wrote:
> > > On Tue, Oct 31, 2006 at 03:50:32PM -0500, Denis Papathanasiou wrote:
> > >   
> > >> Other than using detachtty/attachtty, is there any way to
> > >> attach to a running CMUCL process and have access to its top
> > >> level?
> > >>     
> > > [...]
> > >   
> > >> Unfortunately, I can't run the process I want to monitor under
> > >> detachtty.
> > >
> > > It's a long shot, but can you use screen?
> > > http://en.wikipedia.org/wiki/GNU_Screen
> > >   
> > Screen is way better and more stable. screen -d -m
> > <your-lisp-executable>.
> 
> AFAIK, there's a big problem with screen:
> 
>   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.

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?

(Of course all this is moot as far as the original question: Denis has
already said he can't use screen.)

-- Larry
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.