How can I call GAP functions from a shell script?
Answer by gap-support (using stdin read-in capability of gap)
#!/bin/shif [ "$#" != "1" ]; then echo "Usage: test.sh <string>" exit 1fi;gap -r -b -q << EOILoadPackage( "CrystCat" );DisplaySpaceGroupType( "$1" );EOI
It works exactly as asked, namely
$ ./script.sh P1#I Space-group type (3,1,1,1,1); IT(1) = P1; orbit size 1; fp-free