Apple Remote Desktop 2.2 Bedienungsanleitung Seite 90

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 116
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 89
90 Chapter 3 Administering Computers
Executing Shell Scripts
Shell scripts can be copied, then executed. If a script has any degree of complexity, or
cannot be expressed on a single line, you can use Copy Items to copy the script file to
the client computers, then execute it using the Send UNIX Command. To send a single-
line command you can just use Send UNIX Command.
To copy and execute a script:
1 Prepare and save your script.
Make sure your script is saved with UNIX line endings.
2 Open Remote Desktop.
3 Select a computer list.
4 Select one or more computers in the Remote Desktop window.
5 Use the Copy Items command to copy your script to the client computers.
6 After copying the script, choose Manage > Send UNIX Command.
7 Execute the script by typing:
sh [script path and name]
8 Click Send.
AppleScripts
The second kind of script you can execute, and the most common in the Mac OS X
environment, is an AppleScript. AppleScripts are files that contain English-like
commands, using the AppleScript programming language, and are created using the
Script Editor application. AppleScripts can be executed on client computers in several
ways: they can be compiled, saved and executed as an application, or sent at once
using the command line.
To learn more about AppleScript, see AppleScript Help in Help Viewer, or go to
www.applescript.com.
To send and execute a compiled AppleScript:
1 Save the AppleScript as an application.
2 Open Remote Desktop.
3 Select a computer list.
4 Select one or more computers in the Remote Desktop window.
5 Use the Copy Items command to copy your script to the client machines.
Use the Copy Items command with the Open After Copying option selected in the
Copy Items dialog.
Seitenansicht 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 115 116

Kommentare zu diesen Handbüchern

Keine Kommentare