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!

Search results for query: *

  • Users: wak1967
  • Content: Threads
  • Order by date
  1. 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...
  2. 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 `<<-'...
  3. wak1967

    MAILX &amp; BASH Shell

    Hi Can mailx be used in a bash shell, if not what is the equivelent? Thanks in advance Martin
  4. 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