Re: How to run a process without a controlling terminal?
From: Dan Espen (daneNO_at_SPAM.mk.telcordia.com)
Date: 01/26/05
- Next message: MikeE: "Re: Ghost / Clone Linux Hard Drive"
- Previous message: Floyd L. Davidson: "Re: Compiling modules for a pre-existing kernel"
- In reply to: Scott Simpson: "How to run a process without a controlling terminal?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 Jan 2005 11:35:59 -0500
Scott Simpson <ssimpson@visionsolutions.com> writes:
> I want to test if a script of mine works in an environment without a
> controlling terminal. Is there any way to run a command with the TIOCNOTTY
> ioctl turned on without writing a C program? I guess I can write a C
> program that does this and do a fork/exec but I'd rather not. Can I
> close /dev/tty in the shell somehow or run a command to do it?
In a terminal:
(sleep 2 && runcommand &) ; exit
- Next message: MikeE: "Re: Ghost / Clone Linux Hard Drive"
- Previous message: Floyd L. Davidson: "Re: Compiling modules for a pre-existing kernel"
- In reply to: Scott Simpson: "How to run a process without a controlling terminal?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|