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


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

Re: Script shell ?

From Brice <truc@bidule.fr.invalid>
Newsgroups fr.comp.sys.mac.programmation
Subject Re: Script shell ?
Date 2023-02-21 13:28 +0000
Organization A noiseless patient Spider
Message-ID <tt2guk$158ad$1@dont-email.me> (permalink)
References (6 earlier) <tt0fl5$rbe5$1@dont-email.me> <tt1ute$13374$1@dont-email.me> <tt1vuc$13718$1@dont-email.me> <tt27op$14327$2@dont-email.me> <tt2b1d$14cra$1@dont-email.me>

Show all headers | View raw


le 21 février 2023 à 12:47, M.V. a pondu :


> Dans le message <tt27op$14327$2@dont-email.me>, Brice a écrit le 21
> février 2023 à 11 h 52 :
>
>> pourtant j'ai la permission dans les 2 cas.
>
> Quelle permission ? 
>
>> L'applet, quand elle utilisée toute seule ne pose aucun problème et elle
>> a un accès complet au disque.
>
> Mais c'est pas l'applet qui est en cause, c'est le script shell
> Ejection_disque-04.sh ! Tu as regardé dans la pref système kivabien s'il
> faut donner une ou plusieurs autorisations au script shell ou encore au

on ne voit pas le .sh, par contre j'ai mis le terminal dans les accès
aux disques.

>
> Et si dans le Terminal, tu tapes directement :
>
>     open "path_to_applet"
>
> en remplaçant path_to_applet par le chemin complet vers l'applet qui
> éjecte les volumes ? Et si ça marche toujours pas, essaye :
>
>     sudo open "path_to_applet"
>
> puis tape ton MdP.
>
> PS Je vois que ton shell est zsh mais je ne pense pas que ce soit la
> raison de cette limitation mais, à tout hasard, repasse avec le shell
> bash :
>
>     chsh -s /bin/bash
>
> avant de refaire des tests.
J'ai lancé chsh -s /bin/bash
ensuite j'ai droppé
+++++++++++++++++++++
iMac5K:~ brice$ /Users/brice/Desktop/Ejection_disque-04.sh 
-bash: /Users/brice/Desktop/Ejection_disque-04.sh: Permission denied
====================
la permission est rejetée puis directement l'applet
+++++++++++++++++++++
iMac5K:~ brice$ open /Users/brice/Ajouts/Mount\ \ démount\
disque/Ejection\ disques\ 03-a.app
=====================
les disques ont été éjectés

Au final, ça m'est passé par la tête, mettre open avant de droppé le
fichier .sh (?) :
+++++++++++++++++++++
iMac5K:~ brice$ open /Users/brice/Desktop/Ejection_disque-04.sh
=====================
là, les disques ont été éjectés mais xCode a été ouvert.

Cordialement,

-- 
B. Graignic
enlever-bgraig@wanadoo.fr

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