10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
While executing the below script im getting the error at line 30. Please let me know what changes to be done to fix this.
test.sh: line 30: syntax error near unexpected token `done'
test.sh: line 30: ` done '
# Rev. PA1
# author: eillops
# date: 26-04-2018
#... (1 Reply)
Discussion started by: Kamesh G
2. Shell Programming and Scripting
I have written this in my script but while running i am getting syntax error `(' unexpected.
unload to "$BACKUP_DIR/n_fac_fid-$clliname" select * from n_fac_fid where fac_accesskey in (select fac_accesskey From n_fac_ap_fid where ap_clli="$clliname");
Any help appreciated. (3 Replies)
Discussion started by: suryanmi
3. Shell Programming and Scripting
if ] ; then
echo "Some failure."
I tried many time to detect the unzip error, but it keep show the syntax error wherever how I change the syntac. Hope someone can help me fix the issue, thanks.
Please use code tags next time for your code and... (5 Replies)
Discussion started by: duncanyy
4. Shell Programming and Scripting
I am trying to read the session log through script. But it keeps showing me some error near. I have tried everything. Even tried converting the script using sed command to remove the hidden characters(\r).But nothing seems to be working.Below is the script :
cd... (6 Replies)
Discussion started by: Aryan12345
5. Shell Programming and Scripting
I'm going mad not being able to get this to work. im assuming its only a simple mistake but its driving me bonkers trying to find it.
Please if you can help me it would save me pulling my hair out!!
+ name='TEST Server'... (6 Replies)
Discussion started by: Fisheh
6. Shell Programming and Scripting
Am very new to Unix and am currently Involved in Migrating some Shell Scripts from AIX 4 to Solaris 10.
While using teh for loop am getting the below error:
$ echo $SHELL
$ for file in $(ls *SEBE*)
syntax error: `$' unexpected
while the same works without issue on... (4 Replies)
Discussion started by: paragkhanore
7. UNIX for Advanced & Expert Users
I am running the following script through cygwin and getting below mentioned error.
... (2 Replies)
Discussion started by: MandyR
8. Shell Programming and Scripting
This is an output of my script errored out for "Syntax error near unexpected token `(' " Can someone tell me whats wrong with my script.
Below is my original script pasted.
Script Creation Date 01/21/2010
... (7 Replies)
Discussion started by: raghunsi
9. Shell Programming and Scripting
i am getting following syntax error ...kingly advice why is it coming ??
find . -name "common.log"
if ; then
./a.sh: line 7: syntax error near unexpected token `fi'
./a.sh: line 7: `fi' (9 Replies)
Discussion started by: himvat
10. Shell Programming and Scripting
I want to create a script that polls every hour a directory for the existence of a file. The file I look for is a `token` dropped by an external process at the completion of a successful FTP process. I wrote this script `checkfile.ksh`:
if ] then
mailx... (5 Replies)
Discussion started by: alan