Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by wak1967

  1. wak1967

    Another Syntax Error in BASH Shell

    Hi Daniel I tried the quotes without success. Then I changed db_status to DB_STATUS and it all works now, with or without the quotes. Must be case sensitive. Many thanks for your time. Wak
  2. wak1967

    Another Syntax Error in BASH Shell

    Sorry, afetr a weekend looking at this script I'm going crazy! the error was bash: [: too many arguments. I also need to mention that the script ends with a 'fi'
  3. wak1967

    Another Syntax Error in BASH Shell

    Hi all In the following script I am getting an error on the 'if' line. I'm guessing the problem is with the brackets. Any ideas? if [ $db_status = "MOUNTED" -o $db_status = "OPEN" ]; then # # Get the archivelog-mode of the database # ARCHIVELOG=`sqlplus -s "/ as...
  4. wak1967

    Syntax Error in BASH Shell

    I've tried this but I'm still getting the same error. Any ideas?
  5. wak1967

    Syntax Error in BASH Shell

    Hi again When I run this command shell (test.sh): #!/bin/sh BACKUPLOG=&quot;my_backup-$(date '+%Y.%m.%d:%H:%M').log&quot; export BACKUPLOG # cat > $BACKUPLOG 2> <<-EOF Backup started at: `date` EOF # I get the following error. bash test.sh : line 6: syntax error near unexpected token `<<-'...
  6. wak1967

    MAILX &amp; BASH Shell

    Hi Can mailx be used in a bash shell, if not what is the equivelent? Thanks in advance Martin
  7. wak1967

    Full Server Backup Script

    Many thanks...
  8. wak1967

    Full Server Backup Script

    Hi Guru's Does anyone have a sample shell script that will back up all the directories on a server. I am implementing the full backup on Tru64. If not, are there any good websites where I might find an example. My shell scripting experience is limited so I'm looking for a simple script with...

Part and Inventory Search

Back
Top