Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

defaults ne peut écrire dans /Library/Lauch* ?

3 réponses
Avatar
Marc Chantreux
Bonjour,

Je ne vais pas être prolyxe mais un beau dessin vaut mieux qu'un long
discours.

Ma question est: pourquoi defaults ne veut pas écrire ?

Le beau dessin ci-apres.

Cordialement
Marc

> defaults read $PWD/org.macports.apache2 Debug
0

mc@mac.local:/Library/LaunchDaemons> defaults write
$PWD/org.macports.apache2 Debug 12008-11-07 16:06:39.270 defaults[13939]
Could not write domain /Library/LaunchDaemons/org.macports.apache2; exiting

mc@mac.local:/Library/LaunchDaemons> cat org.macports.apache2.plist
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple
Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Debug</key>
<false/>
<key>Label</key>
<string>org.macports.apache2</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/daemondo</string>
<string>--label=apache2</string>
<string>--start-cmd</string>

<string>/opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper</string>
<string>start</string> <string>;</string>
<string>--stop-cmd</string>
<string>/opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper</string>
<string>stop</string> <string>;</string>
<string>--restart-cmd</string>
<string>/opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper</string>
<string>restart</string>
<string>;</string> <string>--pid=none</string>
</array> <key>RunAtLoad</key> <false/></dict></plist>
mc@mac.local:/Library/LaunchDaemons

3 réponses

Avatar
laurent.pertois
Marc Chantreux wrote:

Ma question est: pourquoi defaults ne veut pas écrire ?



Euh, parce que ton compte n'a pas les droits en écriture sur le fichier
?

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.
Avatar
Marc Chantreux
Laurent Pertois a écrit :
Marc Chantreux wrote:

Ma question est: pourquoi defaults ne veut pas écrire ?



Euh, parce que ton compte n'a pas les droits en écriture sur le fichier
?




si je te dis que j'ai honte, tu me crois ?

en tout cas merci

cordialement,
marc
Avatar
laurent.pertois
Marc Chantreux wrote:

Laurent Pertois a écrit :



> Euh, parce que ton compte n'a pas les droits en écriture sur le fichier
> ?
>

si je te dis que j'ai honte, tu me crois ?



Ah ça te croire, oui, maintenant, ça arrive à tout le monde ;-)

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.