Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.sys.mac.programmation > #2461

Re: Script shell ?

From "M.V." <mv@gmail.invalid>
Newsgroups fr.comp.sys.mac.programmation
Subject Re: Script shell ?
Date 2023-02-21 14:08 +0000
Organization M.V. & Co
Message-ID <tt2j9f$15fm8$1@dont-email.me> (permalink)
References (7 earlier) <tt1ute$13374$1@dont-email.me> <tt1vuc$13718$1@dont-email.me> <tt27op$14327$2@dont-email.me> <tt2b1d$14cra$1@dont-email.me> <tt2guk$158ad$1@dont-email.me>

Show all headers | View raw


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)

Back to fr.comp.sys.mac.programmation | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-19 15:32 +0000
  Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-19 16:46 +0000
    Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-20 08:28 +0000
      Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-20 08:36 +0000
        Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-20 09:14 +0000
          Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-20 09:59 +0000
          Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-20 10:21 +0000
          Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-20 11:04 +0000
            Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-20 18:54 +0000
              Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-20 21:17 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 10:52 +0000
                Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-21 21:20 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 10:05 +0000
                Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-22 20:18 +0000
              Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 08:21 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 08:32 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 08:38 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 10:52 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 11:47 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 13:28 +0000
                Re: Script shell ? "M.V." <mv@gmail.invalid> - 2023-02-21 14:08 +0000
                Re: Script shell ? "M.V." <mv@gmail.invalid> - 2023-02-21 15:09 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 19:19 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 20:45 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 10:05 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 11:01 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 11:07 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 11:17 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 12:31 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 12:53 +0000
                [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 14:33 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 09:09 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 14:07 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.invalid> - 2023-02-24 15:12 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 15:55 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 16:32 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 17:19 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 17:52 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 18:24 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 18:52 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 18:24 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 18:52 +0000
                [HS] Re: [Resolu]Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-24 16:54 +0000
                Re: [HS] Re: [Resolu]Re: Script shell ? Richard Hachel <r.hachel@frite.fr> - 2023-02-24 17:03 +0000
                Re: [HS] Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 18:27 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 11:03 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 11:22 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 08:43 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 09:07 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 09:09 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 10:52 +0000

csiph-web