From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 14 09:12:41 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB1F81065670 for ; Mon, 14 Feb 2011 09:12:41 +0000 (UTC) (envelope-from roam@ringlet.net) Received: from erengrad.hoster.bg (erengrad.hoster.bg [77.77.142.9]) by mx1.freebsd.org (Postfix) with ESMTP id 39E348FC0A for ; Mon, 14 Feb 2011 09:12:41 +0000 (UTC) Received: from middenheim.hoster.bg (middenheim.hoster.bg [77.77.142.11]) by erengrad.hoster.bg (Postfix) with ESMTP id 3A889DCC4C for ; Mon, 14 Feb 2011 10:53:56 +0200 (EET) Received: from straylight.ringlet.net (unknown [95.111.66.80]) (Authenticated sender: roam@hoster.bg) by mail.hoster.bg (Postfix) with ESMTP id 034F15C44C for ; Mon, 14 Feb 2011 10:53:49 +0200 (EET) Received: from roam (uid 1000) (envelope-from roam@ringlet.net) id 5066c1 by straylight.ringlet.net (DragonFly Mail Agent) Mon, 14 Feb 2011 10:53:49 +0200 Date: Mon, 14 Feb 2011 10:53:49 +0200 From: Peter Pentchev To: Garrett Cooper Message-ID: <20110214085349.GC3074@straylight.ringlet.net> Mail-Followup-To: Garrett Cooper , Ashish Mahamuni , freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-MailScanner-ID: 034F15C44C.30DF0 X-hoster-MailScanner: Found to be clean X-hoster-MailScanner-SpamCheck: not spam, SpamAssassin (cached, score=0.001, required 10, autolearn=disabled, UNPARSEABLE_RELAY 0.00) X-hoster-MailScanner-From: roam@ringlet.net X-hoster-MailScanner-To: freebsd-hackers@freebsd.org X-Spam-Status: No Cc: freebsd-hackers@freebsd.org, Ashish Mahamuni Subject: Re: setsid not found on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 09:12:41 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 14, 2011 at 12:32:21AM -0800, Garrett Cooper wrote: > On Sun, Feb 13, 2011 at 11:46 PM, Ashish Mahamuni > wrote: > > I am using FreeBSD 8.1. > > I am doing some automation stuff and running shell scripts remotely usi= ng > > setsid command. > > > > It seems that I do not have setsid on my system. Also, searched in > > /usr/ports for installation but no luck. > > > > Could you please tell me the way to install this command or may be the > > alternative? >=20 > It's a syscall, not an administrative command. How were you > accessing it before? I believe that the original poster is referring to the setsid(1) command available in at least some Linux distributions; it's distributed as part of the util-linux-ng package and it basically does a fork(), setsid() and execve() to run a user-specified command as a session group leader in the style of daemon(8) (but without detaching or daemonizing :) I think it might not be too hard to implement it under FreeBSD. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org peter@packetscale.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am jealous of the first word in this sentence. --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJNWO2ZAAoJEGUe77AlJ98TtooP/2n59X0vqCHkW1bw/BN7iJeB RkDNZA7cDDGRsEOkfSb9mROfoP5TsoqjC4AkoIZrq0aI7BH9UXfDFDx+qFmzsNrQ ar2wYNxWcjr3eh0bVdgLLM/sAzqTzuj9VwNdE0v0DPTNjfVuCMB9bHE+cMJvihbU MDpxFkzfL9/xXWIX9Aced3I1/aGV5tkjVZu9ZMmgMc+5R0kxrB2tJdE4ZTIYGxeb Ca0NDooKnqpfwmQntp4WIr4DoysYbvO0GO00qON+wqPLS6a6mb+KKCEMwKuEWAl7 GONLrmhmo5oGi83SR9NXnVA2gEFfsJeWeCtgPdXcOHNd+yZ5k79ly7ZPv/INqNfg bH7Uhnpg4OUqXR8S7ojzgN3unglHrRb5JdiJH90YGtgB8gcaLMBS9P2Lep8+ll0n tb/48FItLWgjJapqvpxx+lUaAJTuKmrMwxGA/RITpWOWP+B0RieE0pbvzMLy6LGj Uc7BXYkS4H7fqc+rBqkINb50hzMOYTeVL/qR2OxuxCJS57fnQwKhBZXEjFiVCk/6 qDG7Zjz2bNbTWJvOfmWBwBLfpESDEv9vGpli5Z69Zflvda5nyFUzAZQNSbahoZzt wm9SRsUiUCT74jEnwySa/Gi3UMYOBieJUGjvb+5fIJtg/IM+7DKSqaOHeo8UR7cO t0CY71JXXYW8OFn9JNc+ =ykqU -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--