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
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
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 ***