Re: [Resolu]Re: Script shell ?

Liste des GroupesRevenir à fcsm programmation 
Sujet : Re: [Resolu]Re: Script shell ?
De : mv (at) *nospam* gmail.com.invalid (M.V.)
Groupes : fr.comp.sys.mac.programmation
Date : 24. Feb 2023, 20:24:55
Autres entêtes
Organisation : M.V. & Co
Message-ID : <ttavdn$29e89$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
User-Agent : MacCafe/2.10/peaberry (Mac OS X 10.14.6 (18G9323) - MacBookAir7,2)
Dans le message <ttarjo$291aj$1@dont-email.me>, Brice a écrit le 24
février 2023 à 18 h 19 :


iMac5K:~ brice$ chmod +x /Library/Application\
Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh
chmod: Unable to change file mode on /Library/Application
Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh: Operation not
permitted

Le fichier sh doit peut-être être sur le Bureau ou dans un dossier non
spécial.

iMac5K:~ brice$ do shell script /Library/Application\
Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh

iMac5K:~ brice$ do shell script
/Users/brice/Desktop/Ejection_Shell-01.sh

Tu as tapé ça dans le Terminal ????
C'est n'importe quoi !!!! ;-)

Je t'ai dit, éventuellement, de taper

do shell script "path_to_file"

dans un script AppleScript, pas dans le Termainal !!!

Pour utiliser le Terminal et voir si ton script est correct, tu ouvres
une fenêtre du Terminal et tu fais glisser le fichier sh dessus puis
Entrée. Si ça ne fonctionne pas, faut aviser suivant l'erreur renvoyée.

-bash: syntax error near unexpected token `do'

Rien d'étonnant : le Terminal ne comprend rien à ce que tu lui
demandes !

Si j'écris :
open open /Library/Application\
Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh
il ouvre Xcode et affiche le fichier

Normal : c'est (lorsqu'il est présent sur le Mac) Xcode qui, par défaut,
ouvre les fichiers .sh mais ça ne dit rien sur une éventuelle erreur de
syntaxe ou autre. C'est comme ouvrir le fichier dans TextEdit ou dans
BBEdit ou dans LibreOffice ou dans n'importe quel outil capable d'ouvrir
un fichier texte.

--
🇺🇦 Michel Vauquois - <http://michelvauquois.fr> 🇺🇦
Si c'est les meilleurs qui partent les premiers, que penser alors des
éjaculateurs précoces ? (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