Skip to Content.
Sympa Menu

cat-users - Re: [[cat-users]] Linux Config Script

cat-users AT lists.geant.org

Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)

List archive

Re: [[cat-users]] Linux Config Script


Chronological Thread 
  • From: Tomasz Wolniewicz <twoln AT umk.pl>
  • To: Markus Vogl <vogl91 AT gmail.com>, cat-users AT lists.geant.org
  • Subject: Re: [[cat-users]] Linux Config Script
  • Date: Thu, 7 Apr 2016 21:11:15 +0200

This will be corrected in the upcoming issue of CAT. There we are python3 safe and we also test if the python command actually works and if not try python3.

W dniu 07.04.2016 o 19:19, Markus Vogl pisze:
Dear All
I have found an issue in the eduroam installation script from https://cat.eduroam.org/, selecting linux, in line 271, in the command: python << EOF > /dev/null 2>&1

This assumes that the command "python" calls "python2", but since about 2008 there is python 3, and on my arch linux this is the default. But you can still explicitly call python2 with the command python2. Calling it with python3 leads to the error "opening brackets expected after print" (after enabling output)

Another minor issue is, that all the output is pasted to /dev/null, so i had quite some trouble locating the error because i had to fully read and edit the 300+ line script. It would be easier if you'd paste it to a log, or at least define a var named $out that you per default set to /dev/null.
Since you were editing the script you could have changed /dev/null to a real file, but you have a point of course. Since we are creating a directory anyway we may just as well put an output file there.

Tomasz


The script i downloaded for my uni (JKU LInz) is in the attachment - and after changing it from python to python2.

Greetings
Markus Vogl, JKU Linz
To unsubscribe, send this message: mailto:sympa AT lists.geant.org?subject=unsubscribe%20cat-users
Or use the following link: https://lists.geant.org/sympa/sigrequest/cat-users

-- 
Tomasz Wolniewicz    
          twoln AT umk.pl        http://www.home.umk.pl/~twoln

Uczelniane Centrum Informatyczne       Information&Communication Technology Centre
Uniwersytet Mikolaja Kopernika         Nicolaus Copernicus University,
pl. Rapackiego 1, Torun                pl. Rapackiego 1, Torun, Poland
tel: +48-56-611-2750     fax: +48-56-622-1850       tel kom.: +48-693-032-576



Archive powered by MHonArc 2.6.19.

Top of Page