3

Invalid option errors running shell script

view full story
linux-howto

http://www.unix.com – The script below fails with the following error messages: gzip: invalid option -- 'w' Try `gzip --help' for more information. mysqldump: Got errno 32 on write cp: invalid option -- 'w' Try `cp --help' for more information. rm: invalid option -- 'w' Try `rm --help' for more information. Here's the script: #!/bin/bash nice -n 19 mysqldump --user=root --password=0@9fI6qukyBY --all-databases -c | nice -n 19 gzip -9 > /home/tech/'date +%Y%m%d' -wikibackup.tar.gz cp /home/tech/'date +%Y%m%d' -wikibackup.tar.gz /mnt/dathomir rm /home/tech/'date +%Y%m%d' -wikibackup.tar.gz I thou (HowTos)