setpgid function

setpgid function

am 29.10.2007 20:31:08 von Payel

Hi,

How can I use setpgid function in my shell program in order to
implement bg command.Could anybody give
me an example or brief idea.

Payel

Re: setpgid function

am 29.10.2007 21:27:45 von krahnj

Payel wrote:
>
> How can I use setpgid function in my shell program in order to
> implement bg command.Could anybody give
> me an example or brief idea.

Perl's POSIX module has a setpgid function that you could use.

perl -MPOSIX -e"setpgid( $pid, $pgid )"


John
--
use Perl;
program
fulfillment

Re: setpgid function

am 30.10.2007 02:33:49 von Barry Margolin

In article <1193686268.934428.172670@y42g2000hsy.googlegroups.com>,
Payel wrote:

> Hi,
>
> How can I use setpgid function in my shell program in order to
> implement bg command.Could anybody give
> me an example or brief idea.

See the responses in your other thread "Background process
implementation". Don't start two threads on the same question, it's
really confusing.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***