Re: Script shell ?

Liste des GroupesRevenir à fcsm programmation 
Sujet : Re: Script shell ?
De : mv (at) *nospam* gmail.invalid (M.V.)
Groupes : fr.comp.sys.mac.programmation
Date : 21. Feb 2023, 16:08:47
Autres entêtes
Organisation : M.V. & Co
Message-ID : <tt2j9f$15fm8$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : MacCafe/2.10/peaberry (macOS 11.7.4 (20G1120) - iMac19,1)
Dans le message <tt2guk$158ad$1@dont-email.me>, Brice a écrit le 21
février 2023 à 14 h 28 :

J'ai lancé chsh -s /bin/bash
ensuite j'ai droppé

Tu as, semble-t-il, eu la bonne idée de relancer le Terminal après la
commande « chsh -s /bin/bash » ! J'avais oublié de le dire…

Je suis passé sous Big Sur et j'ai rencontré ton problème de "Permission
denied".
J'ai regardé sur la toile et ce problème est connu sauf que, même en
suivant les consignes données ici et là, je ne m'en suis pas sorti.

Par contre :
- j'ai téléchargé
<https://bombich.com/software/files/tools/quit_and_open_application.zip>

- j'ai récupéré le fichier open_application.sh (*)
situé dans le dossier décompressé

- je l'ai ensuite modifié (avec TextEdit) en remplaçant :

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
app_name="Application Name"
 
### No edits required below this line ###
sudo -u `stat -f %Su /dev/console` open -a "$app_name"
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

par

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
open "path_to_applet"
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

et en remplaçant path_to_applet par le chemin complet de l'applet
démontant des volumes.
Je l'ai enregistré sur mon Bureau et… ça marche !!!

(*) Je te l'envoie dans ta BàL
--
🇺🇦 Michel VAUQUOIS 🐸 <http://michelvauquois.fr> 🇺🇦
Toute la vie est une affaire de choix. Cela commence par : "la tétine ou le
téton ?" Et cela s'achève par : "Le chêne ou le sapin ?" (Pierre Desproges)


Date Sujet#  Auteur
19 Feb 23 * Script shell ?48Brice
19 Feb 23 `* Re: Script shell ?47"Benoît L."
20 Feb 23  `* Re: Script shell ?46Brice
20 Feb 23   `* Re: Script shell ?45M.V.
20 Feb 23    `* Re: Script shell ?44Brice
20 Feb 23     +- Re: Script shell ?1M.V.
20 Feb 23     +- Re: Script shell ?1M.V.
20 Feb 23     `* Re: Script shell ?41"Benoît L."
20 Feb 23      `* Re: Script shell ?40Brice
20 Feb 23       +* Re: Script shell ?5"Benoît L."
21 Feb 23       i`* Re: Script shell ?4Brice
21 Feb 23       i `* Re: Script shell ?3"Benoît L."
22 Feb 23       i  `* Re: Script shell ?2Brice
22 Feb 23       i   `- Re: Script shell ?1"Benoît L."
21 Feb 23       `* Re: Script shell ?34M.V.
21 Feb 23        +* Re: Script shell ?31M.V.
21 Feb 23        i`* Re: Script shell ?30Brice
21 Feb 23        i `* Re: Script shell ?29M.V.
21 Feb 23        i  `* Re: Script shell ?28Brice
21 Feb 23        i   `* Re: Script shell ?27M.V.
21 Feb 23        i    `* Re: Script shell ?26M.V.
21 Feb 23        i     `* Re: Script shell ?25Brice
21 Feb 23        i      +* Re: Script shell ?23M.V.
22 Feb 23        i      i`* Re: Script shell ?22Brice
22 Feb 23        i      i +* Re: Script shell ?19M.V.
22 Feb 23        i      i i`* Re: Script shell ?18Brice
22 Feb 23        i      i i `* Re: Script shell ?17M.V.
22 Feb 23        i      i i  `* Re: Script shell ?16Brice
22 Feb 23        i      i i   `* Re: Script shell ?15M.V.
22 Feb 23        i      i i    `* [Resolu]Re: Script shell ?14Brice
24 Feb 23        i      i i     `* Re: [Resolu]Re: Script shell ?13M.V.
24 Feb 23        i      i i      `* Re: [Resolu]Re: Script shell ?12Brice
24 Feb 23        i      i i       `* Re: [Resolu]Re: Script shell ?11M.V.
24 Feb 23        i      i i        `* Re: [Resolu]Re: Script shell ?10Brice
24 Feb 23        i      i i         +* Re: [Resolu]Re: Script shell ?7M.V.
24 Feb 23        i      i i         i`* Re: [Resolu]Re: Script shell ?6Brice
24 Feb 23        i      i i         i +* Re: [Resolu]Re: Script shell ?3Brice
24 Feb 23        i      i i         i i`* Re: [Resolu]Re: Script shell ?2M.V.
24 Feb 23        i      i i         i i `- Re: [Resolu]Re: Script shell ?1Brice
24 Feb 23        i      i i         i `* Re: [Resolu]Re: Script shell ?2M.V.
24 Feb 23        i      i i         i  `- Re: [Resolu]Re: Script shell ?1Brice
24 Feb 23        i      i i         `* [HS] Re: [Resolu]Re: Script shell ?2"Benoît L."
24 Feb 23        i      i i          `- Re: [HS] Re: [Resolu]Re: Script shell ?1Richard Hachel
22 Feb 23        i      i `* Re: Script shell ?2Brice
22 Feb 23        i      i  `- Re: Script shell ?1M.V.
22 Feb 23        i      `- Re: Script shell ?1M.V.
21 Feb 23        `* Re: Script shell ?2M.V.
21 Feb 23         `- Re: Script shell ?1Brice

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal