VMware Workstation 7 Manuel d'utilisateur Page 128

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 512
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 127
Workstation User’s Manual
128 VMware, Inc.
Run or Disable a Script
Ifyouarecreatingacustomscript,runthescriptbeforeassociatingitwithapower
operation.
To run or disable a script
1OntheScriptstaboftheVMwareToolscontrolpanel,selecttheappropriatescript
event.
2Dooneofthefollowing:
Todisablethescript,cleartheUseScriptcheckboxandclickOK.
Defaultscriptsforsuspendingandresumingworktogether.Ifyoudisablethe
scriptofoneoftheseactions,disablethescriptfortheotheractionaswell.
Torunascriptimmediately,clickRunNow.
YoucansuccessfullyrunascriptbyclickingtheRunNowbuttoninthe
VMwareToolscontrolpanel,butthissamescriptcanfailwhenrunaspartof
aWorkstationpoweroperation.ThisisbecausescriptsrunbyclickingRun
Nowareru
nastheloggedinuserandhaveadifferentworkingdirectorythan
whenscriptsarerunbytheVMwareToolsdaemonduringapower
operation.
Execute Commands After You Power Off or Reset a Virtual
Machine
InaLinux,Solaris,orFreeBSDguest,youcanusetheVMwareToolsservicetoexecute
specificcommandswhenyoushutdownorrestarttheguestoperatingsystem.Thisis
inadditiontoanyscriptthatyouspecifiedtorunwhenyoushutdowntheguest
operatingsystem.
1Useatexted
itortoopenthefollowingfile:
/etc/vmware-tools/tools.conf
2Addoneorbothofthefollowingcommandstothefile:
halt-command = <command>
<command>isthecommandtoexecutewhenyoushutdowntheguest
operatingsystem.
reboot-command = <command>
<command>isthecommandtoexecutewhenyourestarttheguestoperating
system.
Vue de la page 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 511 512

Commentaires sur ces manuels

Pas de commentaire