[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Start long running process from Makefile in portable way?
From: |
Oleksandr Gavenko |
Subject: |
Start long running process from Makefile in portable way? |
Date: |
Wed, 29 Sep 2010 10:46:43 +0300 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 |
I want start long running process from Makefile.
To do this I finally wrote:
.PHONY: run
run: targ1 targ2
nohup xterm -e command arg1 arg2 </dev/null 2<&- 1<&- &
Now after invoking "make run" make do it's job, run "xterm"
and exit. "xterm" stay alive.
What I really need from "nohup ... </dev/null 2<&- 1<&- &" magic?
Under Cygwin this work (without '1<&-', '2<&-', '&' make wait
to exit XWin):
exec 1<&-; exec 2<&-; XWin -multiwindow &
But on Linux host this line work (without 'nohup' make wait
for xterm):
nohup xterm &
I try read POSIX 2008 but it seems too complicate to me (very
very long text to get answer in near future).
Can some one explain what part essential for portable solution?
--
С уважением, Александр Гавенко.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Start long running process from Makefile in portable way?,
Oleksandr Gavenko <=