Deutsch English Français Italiano |
<831q1n3423.fsf@helmutwaitzmann.news.arcor.de> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!npeer.as286.net!npeer-ng0.as286.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Helmut Waitzmann <nn.throttle@xoxy.net> Newsgroups: comp.unix.shell Subject: Re: nohup Versus setsid Date: Fri, 13 Sep 2024 18:35:00 +0200 Organization: A noiseless patient Spider Lines: 29 Sender: Helmut Waitzmann <12f7e638@mail.de> Message-ID: <831q1n3423.fsf@helmutwaitzmann.news.arcor.de> References: <vbtqcd$2sce$1@dont-email.me> <vbujqm$1t0jr$1@news.xmission.com> <vbul72$89jc$1@dont-email.me> <vbvod2$esm6$1@dont-email.me> <vbvs6r$7jlu$1@dont-email.me> <vbvsie$fkeu$3@dont-email.me> <vc05dj$kvsf$1@dont-email.me> Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Date: Fri, 13 Sep 2024 18:48:15 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f0e4ad89130e009d4e5de0b67c768f97"; logging-data="1021011"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IsLq60VFxbf4i7kr/ju55pn2suK/Ye+g=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:/bOM/kJHL4i+YsefF5P+CUQOrHE= sha1:OHjlFfDJjI75lOH+OMjfJeFDhLk= Mail-Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net> Mail-Copies-To: nobody Bytes: 2368 Janis Papanagnou <janis_papanagnou+ng@hotmail.com>: > > A long time passed that I used nohup - I thought there was an=20 > option to define the output file - but if I inspect the specs it=20 > seems that redirection of stdin suffices to choose arbitrary=20 > files.=20 > If you substitute stdout for stdin you'll get what the standard=20 describes in=20 (<https://pubs.opengroup.org/onlinepubs/9799919799/utilities/nohup.html#ta= g_20_89_03>):=20 If standard error is a terminal and standard output is open but=20 is not a terminal, all output written by the named utility to its=20 standard error shall be redirected to the same open file=20 description as the standard output.=20 nohup a_command ... >> an_arbitrary_file > (Did I misread the POSIX specs?)=20 > Other than that you read "stdin" where the POSIX specs write=20 "stdout", no.=20