Sponsored Content
Top Forums Shell Programming and Scripting ERROR: ./launch_full_backup.sh[18]: Syntax error at line 28 : `else' is not expected. Post 302348858 by villenan on Sunday 30th of August 2009 05:50:49 AM
Old 08-30-2009
ERROR: ./launch_full_backup.sh[18]: Syntax error at line 28 : `else' is not expected.

Help please! Smilie

I have the following error with the following file and the emails are not arriving to the email, any idea please?

ERROR: ./launch_full_backup.sh[18]: Syntax error at line 28 : `else' is not expected.

FECHA=`date +%d%m%y%H%M`
LOGFILE=/admin/cron/log/full_backup.$FECHA
MAILLIST="emailaddress "$MAILLIST
MAILLIST="emailaddress "$MAILLIST
MAILLIST="emailaddress "$MAILLIST
MAILLIST="emailaddress "$MAILLIST
MAILLIST="emailaddress "$MAILLIST
/admin/cron/full_backup.sh > $LOGFILE 2>> $LOGFILE
RETVAL=$?
if [ $RETVAL -eq 0 ]
mailx -s "Backup result, backup id: $FECHA" $MAILLIST <<EOT
Full Backup $FECHA Successfuly completted.
you can see log detail in $LOGFILE.
EOT
exit 0
else
mailx -s "Errors in backup $FECHA" $MAILLIST <<EOE
PLEASE VERIFY THE BACKUP LOG, POSSIBLE ERROR $FECHA EXCECUTION
PLEASE SEE LOG DETAIL IN $LOGFILE.
RERUN /admin/cron/full_backup.sh COMMAND IF YOU CONSIDER IT NECESSARY.
EOE
exit 1
fi
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

I got error like...syntax error on line 1, teletype

Hi All, when i executing scripts i got error like: syntax error on line 1, teletype expr: syntax error expr: syntax error expr: syntax error Please advise to me. Note: Yesterday it's working fine, 2day only i got error. (2 Replies)
Discussion started by: koti_rama
2 Replies

2. Shell Programming and Scripting

0403-057 Syntax error at line 52 : `)' is not expected.

Can someone please tell me wht is wrong with the following peice of code? I keep getting the following error - 0403-057 Syntax error at line 52 : `)' is not expected. case "${option_count}" in 1) java -Xms256m -Xmx1536m "${APPLNAME}" "${ACTION_TYPE}" > "${LOGFILE}" 2>... (2 Replies)
Discussion started by: Veenak15
2 Replies

3. Shell Programming and Scripting

syntax error near un expected token =~

Hello. Please help with this code. Returns an error message "syntax error near unexpected token =~. Conditional binary operator expected. if " ]] || " ]] then echo "Enter only valid numbers" fi (2 Replies)
Discussion started by: Pauline mugisha
2 Replies

4. Shell Programming and Scripting

Receiving error: ./ang.ksh[35]: 0403-057 Syntax error at line 116 : `done' is not expected.

Hi All I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error. #!/bin/ksh #------------------------------------------------------------------------- # File: ang_stdnld.ksh # # Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies

5. UNIX for Dummies Questions & Answers

> 5 ")syntax error: operand expected (error token is " error

im kinda new to shell scripting so i need some help i try to run this script and get the error code > 5 ")syntax error: operand expected (error token is " the code for the script is #!/bin/sh # # script to see if the given value is correct # # Define errors ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies

6. Shell Programming and Scripting

ksh: 0403-057 Syntax error: `done' is not expected.

Hi I am getting error 'ksh: 0403-057 Syntax error: `done' is not expected.' when running below script any one can provide inputs on this. ------------------------ if then echo "Report Name |Modification Date|Report File Size|Owner" >SOX_`date +'%Y%m%d'` while read line do... (2 Replies)
Discussion started by: karnatis
2 Replies

7. Shell Programming and Scripting

0403-057 Syntax error at line : `}' is not expected.

i dont know where m i mistaking.. please help me out with this issue :( thanks in advance:rolleyes: one_main() { a=100 while ; do clear echo "##############################################" echo ":: CURRENTLY YOU ARE IN RC AND OC MARKING ::" echo... (1 Reply)
Discussion started by: Puneet sinha
1 Replies

8. AIX

0403-057 Syntax error at line 17 : `(' is not expected.

Hi, I am new to shell scripting.i am trying to mail after my backup completed. Here is my shell script: if ; then egrep (ERROR|error|Error|RMAN-) ${/backup/RMANBKUP/spool/shelltest.log} > /dev/null if ; then RESULT_MSG=WARNING: Errors occurred during the ${ORACLE_SID} Rman... (3 Replies)
Discussion started by: faruqms
3 Replies

9. Shell Programming and Scripting

HPUX Syntax error at line 9 : `<' is not expected

Hi All, i'm getting this error, can somebody check? file name is like this 951957039339019_560119_000523_2w47_3060_0038_6002.log filename=$(basename "$1") extension="${filename##*.}" filename="${filename%.*}" IFS="_" read -r -a array... (2 Replies)
Discussion started by: charli1
2 Replies

10. Shell Programming and Scripting

0403-057 Syntax error at line 17 : `(' is not expected.

Hi, While executing my code i am getting below Error: ./check_disk1: 0403-057 Syntax error at line 55 : `(' is not expected. My code is : #!/bin/ksh PROGNAME=`basename $0` STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 OS=$(uname) AWK="/usr/bin/awk"... (6 Replies)
Discussion started by: abodage
6 Replies
dhq(4)							     Kernel Interfaces Manual							    dhq(4)

Name
       dhq - DHQ11 communications interface

Syntax
       device dhu0 at uba? csr 0160440 flags 0x?? vector dhurint dhuxint

Description
       A DHQ11 provides eight communication lines with modem control.

       Each  line attached to the DHQ11 communications multiplexer behaves as described in Input and output for each line can be set independently
       to run at any of 16 speeds.  See for the coding.

       Bit i of flags can be specified for a DHQ11 to say that a line is not properly connected and that the line should be treated  as  hardwired
       with carrier always present.  Thus, specifying ``flags 0x04'' in the specification of would cause the third line to be treated in this way.
       The driver operates under the control of the driver.

Diagnostics
       dhu%d %d: DMA ERROR
       The indicated channel failed to transfer DMA data within 21.3 microseconds of the bus request being acknowledged or there was a memory par-
       ity error.

       dhu%d: DIAG. FAILURE
       The DHQ11 failed the diagnostics that run at initialization time.

       dhu%d: recv. fifo overflow
       The  character input fifo overflowed before it could be serviced.  This can happen if a hard error occurs when the CPU is running with ele-
       vated priority.	Interrupts are disabled, and the system then prints a message on the console.

       dhu%d: DHU HARDWARE ERROR.  TX.DMA.START failed
       The dhq failed to clear the start bit.  Normally, this is cleared to signal that a DMA transfer has completed.

Files
       Dialups

See Also
       tty(4), MAKEDEV(8)

																	    dhq(4)
All times are GMT -4. The time now is 01:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy