Date: Mon, 14 Feb 2011 14:39:28 +0530 From: Ashish Mahamuni <mahamuni.ashish@gmail.com> To: Garrett Cooper <yanegomi@gmail.com>, Ashish Mahamuni <mahamuni.ashish@gmail.com>, freebsd-hackers@freebsd.org, roam@ringlet.net Subject: Re: setsid not found on freebsd Message-ID: <AANLkTine5zY-RsTJ0pY8AU4=-XvGpAuK1NR0w5ZpgWdH@mail.gmail.com> In-Reply-To: <20110214085349.GC3074@straylight.ringlet.net> References: <AANLkTinR-rftR5vuRKab-0bs7D8wCFAX-5AiSDUEe7k5@mail.gmail.com> <AANLkTi=0n=tJtHw4bWK9Dmc1x0Tw5BgveMx9J6HgvbBe@mail.gmail.com> <20110214085349.GC3074@straylight.ringlet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the reply !! Garrett, Its a command available in Linux distros. Peter, I am not able to find "util-linux-ng" under my ports. Anyways, I have found something called "detach", which eventually worked for me. --Ashish On Mon, Feb 14, 2011 at 2:23 PM, Peter Pentchev <roam@ringlet.net> wrote: > On Mon, Feb 14, 2011 at 12:32:21AM -0800, Garrett Cooper wrote: > > On Sun, Feb 13, 2011 at 11:46 PM, Ashish Mahamuni > > <mahamuni.ashish@gmail.com> wrote: > > > I am using FreeBSD 8.1. > > > I am doing some automation stuff and running shell scripts remotely > using > > > 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? > > > > 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 > > -- > 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. > > -----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----- > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTine5zY-RsTJ0pY8AU4=-XvGpAuK1NR0w5ZpgWdH>