12-08-2009
Can you post the script again, this time formatted correctly?
I see two case statements and no "esac"...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have been fighting with a syntax error for the last 2 days, still haven't got the solution. Could you please help me, your help will be greatly appreciated.
In my script I am getting a error in a for loop, its similar to the one as is below.
for v_id in v1 v2 v3 v4
do... (8 Replies)
Discussion started by: rajus19
8 Replies
2. Shell Programming and Scripting
./disk_space_util.sh
./disk_space_util.sh: Syntax error at line 24 : `then' is not expected.
=================================
cat disk_space_util.sh
#!/bin/sh
#
# Parameter Settings ORA_LOG, ORA_SCRIPT, DBA_EMAIL_LIST -- (Set in .profile)
bdf | sed "s/%/ /g" | sed "/Filesystem/d" |... (13 Replies)
Discussion started by: uuser
13 Replies
3. Shell Programming and Scripting
I get this error when I try to run my script
(BTW, this is a simple script I am supposed to write for my class)
$ menuscript
menuscript: syntax error at line 89 : `"' unmatched
$
Here is the code (Any help is greatly appreciated)
(Line numbers included)
1 #!/bin/ksh
2 ... (2 Replies)
Discussion started by: KindHead
2 Replies
4. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
5. Shell Programming and Scripting
Hi
I not sure what is wrong with my script... when I try to run it I get the follow error: "remove: syntax error at line 77: `end of file' unexpected" Thanks in advance for any help.
ans=y
while
do
while :
do
echo "Please enter a name that you... (3 Replies)
Discussion started by: simpsonjr
3 Replies
6. Shell Programming and Scripting
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
1 Replies
7. Shell Programming and Scripting
Hi All,
I am new to Unix, I have written the following script in ksh and get a syntax error :wall:. I need some help to figure out the error and reason. The script below uses some variables from an environment file, also it executes a sql file. The sql file is correct and has no problems. I... (1 Reply)
Discussion started by: disshort23
1 Replies
8. UNIX for Dummies Questions & Answers
Hi guys i'd like to show you this code of my script, where i couldn't find this error
" #! /bin/bash
#copiabin.sh: copia todos los archivos ejecutables a bin
if
then
mkdir $HOME/bin
fi
# copia de archivos y contador N
N=0
for ARCH in *
do
if # Si el archivo es... (9 Replies)
Discussion started by: Newer
9 Replies
9. Shell Programming and Scripting
So, I'm writing my first shell script to try to speed up the process of creating lyric files for mocp and I don't know what the error is, but considering how short the code is, I'm betting it's something super-obvious.
line 7: syntax error near unexpected token `echo'
line 7: ` echo... (4 Replies)
Discussion started by: D351
4 Replies
10. UNIX for Beginners Questions & Answers
Evening All (or morning for some),
Could anyone have a look at the below and advise where i've going wrong with the syntax as i keep getting the below error while trying to run.
Any help would be really apprecaited.
./testout: line 13: syntax error near unexpected token `else'
... (4 Replies)
Discussion started by: mutley2202
4 Replies
LEARN ABOUT REDHAT
xs::apitest
XS::APItest(3pm) Perl Programmers Reference Guide XS::APItest(3pm)
NAME
XS::APItest - Test the perl C API
SYNOPSIS
use XS::APItest;
print_double(4);
ABSTRACT
This module tests the perl C API. Currently tests that "printf" works correctly.
DESCRIPTION
This module can be used to check that the perl C API is behaving correctly. This module provides test functions and an associated test
script that verifies the output.
This module is not meant to be installed.
EXPORT
Exports all the test functions:
print_double
Test that a double-precision floating point number is formatted correctly by "printf".
print_double( $val );
Output is sent to STDOUT.
print_long_double
Test that a "long double" is formatted correctly by "printf". Takes no arguments - the test value is hard-wired into the function (as
"7").
print_long_double();
Output is sent to STDOUT.
have_long_double
Determine whether a "long double" is supported by Perl. This should be used to determine whether to test "print_long_double".
print_long_double() if have_long_double;
print_nv
Test that an "NV" is formatted correctly by "printf".
print_nv( $val );
Output is sent to STDOUT.
print_iv
Test that an "IV" is formatted correctly by "printf".
print_iv( $val );
Output is sent to STDOUT.
print_uv
Test that an "UV" is formatted correctly by "printf".
print_uv( $val );
Output is sent to STDOUT.
print_int
Test that an "int" is formatted correctly by "printf".
print_int( $val );
Output is sent to STDOUT.
print_long
Test that an "long" is formatted correctly by "printf".
print_long( $val );
Output is sent to STDOUT.
print_float
Test that a single-precision floating point number is formatted correctly by "printf".
print_float( $val );
Output is sent to STDOUT.
SEE ALSO
XS::Typemap, perlapi.
AUTHORS
Tim Jenness, <t.jenness@jach.hawaii.edu>, Christian Soeller, <csoelle@mph.auckland.ac.nz>, Hugo van der Sanden <hv@crypt.compulink.co.uk>
COPYRIGHT AND LICENSE
Copyright (C) 2002 Tim Jenness, Christian Soeller, Hugo van der Sanden. All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.0 2002-06-01 XS::APItest(3pm)