[GAP Forum] Gap doesn't quit automatically when running in script mode.

Hongyi Zhao hongyi.zhao at gmail.com
Sat Apr 30 10:57:39 BST 2022


On Sat, Apr 30, 2022 at 5:52 PM Bill Allombert
<Bill.Allombert at math.u-bordeaux.fr> wrote:
>
> On Sat, Apr 30, 2022 at 05:16:09PM +0800, Hongyi Zhao wrote:
> > On Sat, Apr 30, 2022 at 4:26 PM Dima Pasechnik <dima at sagemath.org> wrote:
> > >
> > > On Sat, Apr 30, 2022 at 02:57:22PM +0800, Hongyi Zhao wrote:
> > > > Hi GAP team,
> > > >
> > > > I'm running the following script to compute the irreducible
> > > > representations of small abstract groups with gap:
> > > [...]
> > >
> > > > I run the above script as follows:
> > > >
> > > > $ gap abstract-group-irrep.gap > out
> > > >
> > > > But I noticed that gap will hang there forever, even the job has been
> > > > finished, till I hit `Ctrl + d` to terminate it. Any hints for letting
> > > > it exits automatically?
> > >
> > >
> > > There is a command to quit GAP,
> > >
> > > gap> quit;
> >
> > But I want to run the script in a completely non-interactive manner.
>
> Just add
> quit;
> as the last line of your script.

This doesn't fix the problem, as I've mentioned in another mail of this thread.

It still will stuck at the following step:

$ gap abstract-group-irrep.gap >/dev/null
Reading file "abstract-group-irrep.gap" has been aborted.

Is there anything wrong with my script? FYI, see the attachment for
more details.

> Cheers,
> Bill.

Yours,
Hongyi


More information about the Forum mailing list