I'm still a Linux noob, but i like what i see so far, obviously learning any new OS takes time so heres a quick and hopefully simple to answer question.
I am writing a simple batch file (i believe they are known as shell scripts in linux?)
please excuse my ignorance
The script is simply an automated way of installing Flash Player 9 on my linux box the script itself works fine but i wanted to know how to turn ECHO OFF, for example in a Windowz .bat file you would use '@ECHO OFF' but how do i accomplish the same in Linux??
Here is my very basic script:-
Like i say it works but when you run the script i only want it to show the actual text that is echoed and not everything else.
Any help would be greatly appreciated
TurboSquid
I am writing a simple batch file (i believe they are known as shell scripts in linux?)
please excuse my ignorance
The script is simply an automated way of installing Flash Player 9 on my linux box the script itself works fine but i wanted to know how to turn ECHO OFF, for example in a Windowz .bat file you would use '@ECHO OFF' but how do i accomplish the same in Linux??
Here is my very basic script:-
| Code: |
|
# Flash PLayer 9 Install script # clear echo "Hi $USER this is the simple Flash Player 9 Install script." # # Removing flashplugin nonfree echo "Removing old Flash Plugins." sudo apt-get remove flashplugin-nonfree rm ~/.mozilla/plugins/*flash* # # Download Flash Player 9 echo "Downloading Flash-PLayer-9 from http://fpdownload.macromedia.com." wget -c http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz echo "Download Complete." # # Install Flash Player 9 echo "Installing Flash Player 9." tar -xvzf install_flash_player_9_linux.tar.gz sudo mv install_flash_player_9_linux/libflashplayer.so /usr/lib/firefox/plugins/ sudo mv install_flash_player_9_linux/flashplayer.xpt /usr/lib/firefox/plugins/ echo "Installed." # # Clean Up echo "Cleaning up." rm install_flash_player_9_linux.tar.gz #rm -r install_flash_player_9_linux echo "All Tasks Completed." exit 0 |
Like i say it works but when you run the script i only want it to show the actual text that is echoed and not everything else.
Any help would be greatly appreciated
TurboSquid
