09-28-2008
Franklin -
Some wierd compilers expect two arguments to main. It also could be a shell error, like you think.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys ,
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.
#!/bin/bash
Script Creation Date 01/21/2010
Author baraghun
... (7 Replies)
Discussion started by: raghunsi
7 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am running the following script through cygwin and getting below mentioned error.
*******************************************
#!/bin/sh
# constants
WORK_DIR="deploy"
INFOFILE="deploy.info"
INTROFILE="Intro.sh"
CMGMT_PKG="com.kintana.cmgmt.deploy"
DEPLOY_PREFIX="mitg"
... (2 Replies)
Discussion started by: MandyR
2 Replies
3. UNIX for Dummies Questions & Answers
hi! just want to seek help on this error: syntax error near unexpected token 'do
this is my script
# !/bin/sh
#
for y in 27 25
do
exemmlmx -c "ZEEI;" -n XRT$y >> blah
done
what can be wrong? thanks! (6 Replies)
Discussion started by: engr.jay
6 Replies
4. 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!!
Thanks
#!/bin/bash -xv
#
#Config
name="TEST Server"
+ name='TEST Server'... (6 Replies)
Discussion started by: Fisheh
6 Replies
5. Shell Programming and Scripting
first of all I thought the argument DONE is necessary for all scripts that have or begin with do statements which I have on my script, However, I still don't completely understand why I am receiving an error I tried adding another done argument statement but didn't do any good.
I appreciate... (3 Replies)
Discussion started by: wolf@=NK
3 Replies
6. Shell Programming and Scripting
I tried to execute the code but I got this error
./Array.c: line 9: syntax error near unexpected token '('
./Array.c: line 9: ' nvals = get_data(a,MAXARRAY);'
and
#include<stdio.h>
#define MAXARRAY 1000
main()
{
int a,
nvals;
nvals =... (7 Replies)
Discussion started by: sgradywhite
7 Replies
7. Shell Programming and Scripting
Hi all,
I have a simple script that doesn't work somehow. I can't seem to be spotting the cause of the malfunction.
count=$((1))
for item in `cat test1.txt`
printf %s `sed -n $((count))p test2.txt` > test3.txt
count=$((count+1))
do
something
done
I get ;
./why.sh: line 3:... (14 Replies)
Discussion started by: y33t
14 Replies
8. Shell Programming and Scripting
Hello every one!!
I don't know where I am going wrong but I am finding it difficult to clear this error of syntax error near unexpected token `else'
I am writing a simple shell script to find a file in a directory and if found execute that else return an error to the log file
... (14 Replies)
Discussion started by: masubram
14 Replies
9. How to Post in the The UNIX and Linux Forums
I have 2 files like a.txt and b.txt and the content is as below
cat a.txt
810750125 117780 /BSCSQAT4A/bscsqat4a/lib/jar/wclt_common.jar
1803152428 13300 /BSCSQAT4A/bscsqat4a/lib/jar/WFMSSupportTool.jar
2663502779 67049 /BSCSQAT4A/bscsqat4a/lib/jar/wma.jar
687942896 665272... (1 Reply)
Discussion started by: ranabhavish
1 Replies
10. Programming
Below query is not working for me. Please help me on this
DATA EXCLUDE STATEMENT: TABLE:\"LIKE \'%\_HISTORY\'\", TABLE:\"LIKE \'%\_HIST\'\", TABLE:\"in \(select tname from tab where REGEXP_LIKE(TNAME,\'\_H$\'\))\", TABLE:\"LIKE \'%\_LOG\'\", TABLE:\"LIKE \'DW\_%\'\", TABLE:\"LIKE... (1 Reply)
Discussion started by: princy
1 Replies
LEARN ABOUT HPUX
dtinfolib
DtInfoLib(file format) DtInfoLib(file format)
NAME
DtInfoLib -- collection of book cases for browsing with dtinfo
SYNOPSIS
DtInfo_LoadInfoLib
Criteria:
DATA_ATTRIBUTES_NAME: DtInfoLib
NAME_PATTERN: ?*.dti*
CONTENT: 0 filename .oli
MODE: d|l
LINK_NAME: ?*.dti*
Attributes:
TYPE_LABEL: DtInfoLib
DESCRIPTION: On-line documentation for the Information Manager.
ICON: Dtinlib
PROPERTIES: NULL
ACTIONS: Open
IS_TEXT: false (could be true for criteria 2 match)
INSTANCE_ICON Field: [available for publisher-supplied or user's infolib icon]
DESCRIPTION
DtInfoLib is a desktop object representing a collection of book cases of documents that can be accessed through the CDE Information Man-
ager. DtInfoLib data criteria and data attributes are identified for use by desktop facilities. These are part of the CDE built-in data
types.
DtInfoLib is a directory that contains the collection of book cases available for a given information library. The contents of the DtIn-
foLib directory are not visible to the end-user through the desktop. The DtInfoLib object can be launched directly by double-clicking on
the associated icon or by dragging the icon on to the Information Manager icon in the File Manager or on the Front Panel.
ENVIRONMENT VARIABLES
If defined, the environment variable DTINFOLIBSEARCHPATH may be used to find the default infolib (or infolibs) for the system. If provided,
the dtinfo command line argument given with the -l option overrides the environment. If none of the other path mechanisms are used, the
browser uses the standard CDE path.
ACTIONS
/MESSAGES
Double-clicking on the DtInfoLib object, or selecting Open from the objects select menu invokes the Open action on the object.
FILES
The default location for the desktop on line documentation library is /usr/dt/infolib/%L.
SEE ALSO
dtinfo(1), dtinfogen(1), dtinfoBook.dtd - dtinfoBookdtd(5), DtMmdbBookCaseGetInfo(3), DtMmdbInfoLibInfo(5)
DtInfoLib(file format)