Bob Dunlop said:
> > I need to determine if my Linux program is running detached,
> > e.g. if it was launched by
> > vfxlin
> > or
> > vfxlin &
>
> Uhm the second process isn't detached it's backgrounded which
> isn't the same thing, it will still have a controlling terminal.
>
> If your qu
On Mon, Sep 28 at 11:24, Stephen Pelc wrote:
> I need to determine if my Linux program is running detached,
> e.g. if it was launched by
> vfxlin
> or
> vfxlin &
Uhm the second process isn't detached it's backgrounded which
isn't the same thing, it will still have a controlling terminal.
If
2009/9/29 Stephen Pelc :
>
> Thank you for answering a question I didn't ask! The current
> version of vfxlin has changed! The question is how do I
> determine if a program is running in a terminal session or is
> detached in some way, e.g. by using & at the end of the command
> line? I need need t
On Tue, Sep 29, 2009 at 13:28:02 +0100 (+0100), Stephen Pelc wrote:
> Under Kubuntu 9.04 at least, trying to open /dev/tty succeeds in
> both cases and fds 0,1,2 return true from isatty(). Similarly,
> ttyname() returns a name.
Hmm, that was going to be my suggestion. Perhaps you could see wheth
Stephen Pelc wrote:
> Thank you for answering a question I didn't ask!
in b4 etiquette flamewar
--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
---
Vic said
> > I need to determine if my Linux program is running detached,
> > e.g. if it was launched by
> > vfxlin
> > or
> > vfxlin &
>
> VFX isn't too keen on not having a console...
>
> What I did was to run it through screen :-
Thank you for answering a question I didn't ask! The curre
> I need to determine if my Linux program is running detached,
> e.g. if it was launched by
> vfxlin
> or
> vfxlin &
VFX isn't too keen on not having a console...
What I did was to run it through screen :-
screen -dmS vfx vfxlinux
Then you can get to the (unattended) console with:
scr
I need to determine if my Linux program is running detached,
e.g. if it was launched by
vfxlin
or
vfxlin &
Is there a standard way for the vfxlin program to determine
this? It would also be useful to know if input or output is
being piped.
Stephen
--
Stephen Pelc, step...@mpeforth.com
Mic