setpgid function

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
Payel [ Mo, 29 Oktober 2007 20:31 ] [ ID #1856604 ]

Re: setpgid function

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
krahnj [ Mo, 29 Oktober 2007 21:27 ] [ ID #1856605 ]

Re: setpgid function

In article <1193686268.934428.172670 [at] y42g2000hsy.googlegroups.com>,
Payel <kar.payel [at] gmail.com> 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 [at] 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 ***
Barry Margolin [ Di, 30 Oktober 2007 02:33 ] [ ID #1857396 ]
Linux » comp.unix.shell » setpgid function

Vorheriges Thema: how can I combine 'find' and 'cp' command ?
Nächstes Thema: Background process implementation