American Citizen on Sun, 22 Sep 2024 00:36:12 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

my attempt to find operating system


This script seems to work for me

? \l
   log = 1 (on)
   [logfile is "pari.log"]
? \v
                  GP/PARI CALCULATOR Version 2.16.2 (development git-cd66bbd045)                    amd64 running linux (x86-64/GMP-6.3.0 kernel) 64-bit version compiled: Apr 25 2024, gcc version 13.2.1 20240206 [revision 67ac78caf31f7cb3202177e6428a46d829b70f23] (SUSE Linux)
                                     threading engine: single
                          (readline v7.0 enabled, extended help enabled)
? k=readstr("pari.log");
? k[4]
%2 = "                   amd64 running linux (x86-64/GMP-6.3.0 kernel) 64-bit version"

You could parse this line for the operating system.

and then turn off logging again

? \l
   log = 0 (off)
   [logfile was "pari.log"]