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

Hongyi Zhao hongyi.zhao at gmail.com
Sat Apr 30 10:16:09 BST 2022


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.

> See more in https://www.gap-system.org/Manuals/doc/ref/chap4.html#X7FE7C0C17E1ED118
> (4 The Programming Language of Reference Manual)
>
>
> HTH,
> Dima



More information about the Forum mailing list