1) man cp
...
COMPATIBILITY
Historic versions of the cp utility had a -r option.
This implementation supports that option; however, its use is strongly discouraged, as it does not correctly copy special files, symbolic links, or fifo's.
...
2) Welche Datei wird denn da erzeugt und was ist ihr Inhalt?
Ergebnis 1 bis 3 von 3
- 16.09.2011, 08:45 #1Ribston Pepping
Themenstarter
- Registriert
- 02.2009
- Ort
- Dortmund
- Alter
- 24
- Beiträge
- 295
[AS] Shell Script & dirkte Eingabe ins Terminal Hi! Ich habe ein Shell Script, welches in einem Apple Script aufgerufen wird. Leider funktioniert es nicht, wie ich es mir vorstelle.
Ich habe ein Script, welches meine Software automatisch "installieren" soll. Testeweise liegt es jetzt auf dem Desktop. Es soll die .app in den Application Ordner verschieben. Wenn ich per Terminal den folgenden Befehl ausführe, dann klappt es:
In ein AS eingebunden, kommt es zu einem Fehler. Es wird nur eine Datei mit 5 KB angelegt und weiter passiert nichtsCode:sudo cp -r ~/Desktop/Application.app/ /Applications/Application.app

Es liegt entweder an dem Einbinden des Shell Script in ein AS oder das Shell Script an sich hat ein Problem. Ich vermute, dass das Problem am Shell Script selbst liegt. Hat einer eine Idee?Code:do shell script "cp -r ~/Desktop/Application.app/ /Applications/Application.app" with administrator privileges
- 16.09.2011, 13:32 #2
- 16.09.2011, 13:43 #3
Vielleicht probierst Du mal ditto aus...


Zitieren

