Re: How to run a process without a controlling terminal?
From: Scott Simpson (ssimpson_at_visionsolutions.com)
Date: 01/26/05
- Next message: JohnInSD At san DOT rr dot COM: "Re: lilo on loop devices"
- Previous message: Scott Simpson: "Re: How to run a process without a controlling terminal?"
- In reply to: Chris F.A. Johnson: "Re: How to run a process without a controlling terminal?"
- Next in thread: Chris F.A. Johnson: "Re: How to run a process without a controlling terminal?"
- Reply: Chris F.A. Johnson: "Re: How to run a process without a controlling terminal?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Jan 2005 19:12:50 -0800
Chris F.A. Johnson wrote:
> On Wed, 26 Jan 2005 at 02:40 GMT, Scott Simpson wrote:
>> 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?
>
> Would using at (or a cron job) work?
>
That would probably do it. Guess I'll try. Pretty silly just to get rid of a
controlling terminal.
- Next message: JohnInSD At san DOT rr dot COM: "Re: lilo on loop devices"
- Previous message: Scott Simpson: "Re: How to run a process without a controlling terminal?"
- In reply to: Chris F.A. Johnson: "Re: How to run a process without a controlling terminal?"
- Next in thread: Chris F.A. Johnson: "Re: How to run a process without a controlling terminal?"
- Reply: Chris F.A. Johnson: "Re: How to run a process without a controlling terminal?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|