linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: xlp <xlp@emtel.net.co>
To: linux-c-programming@vger.kernel.org
Subject: a 'wrapper'
Date: Sat, 29 Jun 2002 05:25:02 -0500	[thread overview]
Message-ID: <20020629052348.A50622@nietzsche> (raw)

hi, i have been trying to let certain process working on a remote machine in this way:
nohup ./a.out >> /dev/null &
but when i log off, the process dies.
Can i code a certain process that fork itself, call setsid() and run a.out with system() or exec() ?
How can i deal with this situation? I want that the executable object a.out forget about terminal control and do its work without care about sdtin/stdout/stderr.

bye Unix friends.



             reply	other threads:[~2002-06-29 10:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-29 10:25 xlp [this message]
2002-06-29 14:49 ` a 'wrapper' Jan-Benedict Glaw
2002-06-30  7:52   ` Ben Marsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020629052348.A50622@nietzsche \
    --to=xlp@emtel.net.co \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).