Skip to Content.

cat-users - Re: [cat-users] Script problem on Linux.

cat-users AT lists.geant.org

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

List archive


Re: [cat-users] Script problem on Linux.


Chronological Thread 
  • From: Vincent LOUPIEN <vincent.loupien AT upmf-grenoble.fr>
  • To: Tomasz Wolniewicz <twoln AT umk.pl>
  • Cc: cat-users AT geant.net
  • Subject: Re: [cat-users] Script problem on Linux.
  • Date: Mon, 17 Feb 2014 09:00:31 +0100 (CET)
  • List-archive: <http://mail.geant.net/pipermail/cat-users/>
  • List-id: "The mailing list for users of the eduroam Configuration Assistant Tool \(CAT\)" <cat-users.geant.net>

Hello Tomasz,

Congratulations for having determinated where originated this problem. I am
at your disposal if you need to test in French language environment.

Best regard,

----- Mail original -----
> Hi,
> The problem you have noticed has nothing to do with running the
> script
> in root mode, but results from running it in the terminal mode.
> In the GUI mode all works fine. If the DISPLAY environment variable
> is
> not set then the terminal mode is run. The trouble is caused by
> something I have not anticipated. In the English version the user is
> prompted to answer Y/N and the script expects either of them turning
> the
> answer to upper case and comparing with the stored answers. What I
> neglected to do was to turn the stored answers to upper case since I
> assumed they would be single letters.
>
> In the French version the translator used full words Oui/No, so my
> approach failed.
>
> I will add a fix to the new release and possibly also a hot fix to
> the
> current one.
>
> Thanks for spotting this.
>
> Tomasz
>
>
>
> W dniu 11.02.2014, 17:40, Vincent LOUPIEN pisze:
> > Hello CAT,
> >
> > I have a problem running up to you on the configuration script
> > generated by CAT for Linux systems (and may be a solution).
> >
> > When running with the equivalent to the root rights (sudo) or as
> > root (sudo-s) eduroam-linux-xxxx.sh script, the course runs in a
> > loop on the question "Yes / No" of belonging to the univercity
> > xxxx. If I answer "No", we go out of the execution of the script
> > (which is normal). If I answer "Yes", we always come back to the
> > same question (which is problematic).
> >
> > Taking a look at the code and reversing two lines, it seems to
> > solve the problem but it might not be the ideal modification :
> >
> > line 72 in the function ask {
> > if [$ 3 == "0"]; Then
> > $ def = no
> > else
> > $ def = yes
> > fi
> >
> > Are this the right solution?
> >
> > Regards,
> >
> > NB: tests realised on Ubuntu 12.04.4 LTS (up to date).
> >
>
> --
> Tomasz Wolniewicz
>
> twoln AT umk.pl
> http://www.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
>
>

--

BEGIN:VCARD
VERSION:3.0
FN:Vincent LOUPIEN
N:LOUPIEN;Vincent;;;
ADR;TYPE=work,postal,parcel:;;Direction des Systemes d'Information,Universite Pierre Mendes-France,Batiment Langues\, Nouvelles Technologies - Bureau 23,Domaine Universitaire,1300\, rue des Résidences - BP 47  Cedex 9;Grenoble;;F-38040;
TEL;TYPE=work,fax:(+33).4.76.82.83.13
TEL;TYPE=work,voice:(+33).4.76.82.57.58
EMAIL;TYPE=internet:vincent.loupien AT upmf-grenoble.fr
URL;TYPE=work:http://webdsi.upmf-grenoble.fr/connecteur_php_5.1/BiperV4/infosplus_carte.php?personne=1218
REV:2013-03-22T14:01:40Z
UID:c675c308-6f59-46f5-9589-14e7e4524794:2249
END:VCARD



Archive powered by MHonArc 2.6.19.

Top of Page