XScript: Difference between revisions

Line 79: Line 79:


==Create alias 'xoff' command to execute safe shutdown==
==Create alias 'xoff' command to execute safe shutdown==
Then run the following command to create a alias 'xoff' command
1. Prepaid the xSoft.sh command
sudo cp -f ./xSoft.sh                /usr/local/bin/
2. Then run the following command to create a alias 'xoff' command
  echo "alias xoff='sudo /usr/local/bin/xSoft.sh 0 27'" >>  ~/.bashrc
  echo "alias xoff='sudo /usr/local/bin/xSoft.sh 0 27'" >>  ~/.bashrc
3. Run the following command to make the alias '''xoff''' effective
  source ~/.bashrc
  source ~/.bashrc
After the installation is complete, an <code>xoff</code> command will be created to shut down the software.Then you can run <code>xoff</code> to execute software shutdown.
After the installation is complete, an <code>xoff</code> command will be created to shut down the software.Then you can run <code>xoff</code> to execute software shutdown.