f



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

How can I resolve this error:
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
../cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
(error token is " ")
10176147

(notice it does infact have the desired value too)
....from this code:

#!/bin/bash
COMMANDS="awk"
for i in $COMMANDS
do
        X=`echo $i|tr [a-z] [A-Z]`
        export $X=`which $i`
done
FILE="/proc/stat"
while read ARRAY_0
do
        ROW_0=`echo "$ARRAY_0" | $AWK '/cpu0 / {print $2}'`
        (( ROW_0 = $ROW_0 ))
done < $FILE
echo ${ROW_0}
exit 0


0
Perry
7/15/2004 5:45:46 PM
comp.unix.shell 15484 articles. 2 followers. Post Follow

2 Replies
4242 Views

Similar Articles

[PageSpeed] 38

"Perry Whelan" <meba@wi.rr.comnojunk> writes:

> How can I resolve this error:
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> (error token is " ")
> 10176147
> 
> (notice it does infact have the desired value too)
> ...from this code:
> 
> #!/bin/bash
> COMMANDS="awk"
> for i in $COMMANDS
> do
>         X=`echo $i|tr [a-z] [A-Z]`

This should be

X=`echo $i|tr '[a-z]' '[A-Z]'`

>         export $X=`which $i`

This should be 

export X=`which $i`

But I'm not sure why you're doing it. 

1. Why are you uppercasing the name of awk? You don't use it anywhere,
   and you reassign X in the next line anyway.

2. You pass which the name as it's set in i, not the uppercased name.

> done
> FILE="/proc/stat"
> while read ARRAY_0
> do
>         ROW_0=`echo "$ARRAY_0" | $AWK '/cpu0 / {print $2}'`
>         (( ROW_0 = $ROW_0 ))

What's this line intended to do? Why set a variable to the value it
currently has?

This is the reason for the error messages. If you really are trying to
do that, the syntax should be

ROW_0=$ROW_0

But there's no reason to do that I can see.

> done < $FILE
> echo ${ROW_0}
> exit 0

No output will be produced unless "cpu0 " is in the last line of the
file. 

If what you're trying to do is get the second field from the cpu0 line
of /proc/stat, try this

#!/bin/bash
FILE="/proc/stat"
ROW_0=`awk '
  /cpu0 / {print $2}
' $FILE`
echo ${ROW_0}

Joe
-- 
We can't all be heroes because someone has to sit on the curb and
clap as they go by.
  - Will Rogers
0
joe
7/15/2004 6:54:09 PM
<joe@invalid.address> wrote in message
news:m3fz7tw17y.fsf@invalid.address...
> "Perry Whelan" <meba@wi.rr.comnojunk> writes:
>
> > How can I resolve this error:
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > ./cpu_percentage: line 16: ((: ROW_0 =  : syntax error: operand expected
> > (error token is " ")
> > 10176147
> >
> > (notice it does infact have the desired value too)
> > ...from this code:
> >
> > #!/bin/bash
> > COMMANDS="awk"
> > for i in $COMMANDS
> > do
> >         X=`echo $i|tr [a-z] [A-Z]`
>
> This should be
>
> X=`echo $i|tr '[a-z]' '[A-Z]'`
>
> >         export $X=`which $i`
>
> This should be
>
> export X=`which $i`
>
> But I'm not sure why you're doing it.
>
> 1. Why are you uppercasing the name of awk? You don't use it anywhere,
>    and you reassign X in the next line anyway.
>
> 2. You pass which the name as it's set in i, not the uppercased name.
>
> > done
> > FILE="/proc/stat"
> > while read ARRAY_0
> > do
> >         ROW_0=`echo "$ARRAY_0" | $AWK '/cpu0 / {print $2}'`
> >         (( ROW_0 = $ROW_0 ))
>
> What's this line intended to do? Why set a variable to the value it
> currently has?
>
> This is the reason for the error messages. If you really are trying to
> do that, the syntax should be
>
> ROW_0=$ROW_0
>
> But there's no reason to do that I can see.
>
> > done < $FILE
> > echo ${ROW_0}
> > exit 0
>
> No output will be produced unless "cpu0 " is in the last line of the
> file.
>
> If what you're trying to do is get the second field from the cpu0 line
> of /proc/stat, try this
>
> #!/bin/bash
> FILE="/proc/stat"
> ROW_0=`awk '
>   /cpu0 / {print $2}
> ' $FILE`
> echo ${ROW_0}
>
> Joe
> -- 
> We can't all be heroes because someone has to sit on the curb and
> clap as they go by.
>   - Will Rogers

Thanks Joe, but the reason for the while read i do is to take an accurate
snapshot of the /proc/stat file, rather than reading each time I get a
value.

I got it figured out, and now also realize (after rereading my bash book,
again) that my logic was borken before...

Here's what I did:
while read ARRAY_0
   do
           ROWS_0[$[++N]]=$ARRAY_0
   done < $FILE

   N=0
   while [ $[++N] -le ${#ROWS_0[*]} ]
   do
           ALL_USER0=`echo "${ROWS_0[1]}" | $AWK '{print $2}'`
done

echo $ALL_USER0 ;#now works perfectly...


0
Perry
7/15/2004 8:01:23 PM
Reply:

Similar Artilces:

Strange error:An unexpected token ")" was found...Expected tokens may include: ")"
Hi all, I'm trying to run the following code taken from http://blogs.ittoolbox.com/database/technology/archives/006045.asp# select substr(tablespace_name,1,30) as "Tablespace Name", case (tablespace_type) when 0 then 'DMS' else 'SMS' end as "Type", case (tablespace_state) when 0 then 'Normal' else 'Other ' || char(tablespace_state) end as "State", int((total_pages*page_size)/1024/1024) as "Size (Meg)", smallint((float(free_pages) / float(total_pages))*100) as "% Free Space&quo...

Can't "mk CONF=9pcdisk" --> gives error "rc: #d/0: token '=': syntax error"
I'm in /sys/src/9/pc and I type `mk CONF=9pcdisk` and rc gives me the error "rc: #d/0: token '=': syntax error". Why is this? Just doing mk works fine (I think). Thanks! Plan9 looks very cool... just finished reading through intro (all of it). you're using backquotes, why? that would be `{mk CONF=3D9pcdisk} in rc's syntax. now to compile that kernel the syntax is: % mk 'CONF=3Dpcdisk' now are you sure you want a pcdisk?=20 On Jul 19, 2012, at 6:07 AM, kalaracey@gmail.com wrote: > I'm in /sys/src/9/pc and I type >=20 > `mk CONF=3D9pcdisk` >=20 > and rc gives me the error "rc: #d/0: token '=3D': syntax error". >=20 > Why is this? Just doing mk works fine (I think). >=20 > Thanks! Plan9 looks very cool... just finished reading through intro = (all of it). >=20 --- Federico G. Benavento benavento@gmail.com --0015174757f6baa65404c52b40a6 Content-Type: text/plain; charset=UTF-8 9pcdisk is the output file, not the configuration file. Also you need to quote the = because it is special to rc (assignment). Try mk 'CONF=pcdisk' On 19 July 2012 10:07, <kalaracey@gmail.com> wrote: > > `mk CONF=9pcdisk` --0015174757f6baa65404c52b40a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 9pcdisk is the output file, not the configuration file. Also you need to qu= ote the =3D becaus...

Error: "syntax error: got (, expecting Newline"
Hi friends i tried to compile following programs and link it, i got an error like // hellofunc.h /* example include file */ extern void myPrintHelloMake(void); // hellomake.cpp #include "hellofunc.h" int main() { // call a function in another file myPrintHelloMake(); return 0; } // hellofunc.cpp #include "hellofunc.h" #include <iostream.h> void myPrintHelloMake(void) { cout<<"Hello make files \n"; return; } i compiled the file with following commands on MKS KORN SHELL cc hellofunc.cpp cc hellomake.cpp cc -hello hellofu...

ERROR MESSAGE "syntax error near unexpected token `do "
I'm a newbie to this, so I'm just trying to run a simple program and I'm gettting the followig error, syntax error near unexpected token `do , the below program is what I'm running. I'm running it on a Linux box if makes a difference. for i in 1 2 3 4 5 do echo "Welcome $i times" done vtcad wrote: > I'm a newbie to this, so I'm just trying to run a simple program and > I'm gettting the followig error, syntax error near unexpected token > `do , the below program is what I'm running. I'm running it on a Linux > box if makes a difference. > > > for i in 1 2 3 4 5 > do > echo "Welcome $i times" > done > Most likely it's a file generated on a WinDOS system or at least with some superfluous CR's; remove those CR's (^M's) at the line ends using dos2unix. Janis On 13 Apr 2007 11:08:13 -0700, vtcad <Roland.Fontaine@gmail.com> wrote: > > > I'm a newbie to this, so I'm just trying to run a simple program and > I'm gettting the followig error, syntax error near unexpected token > `do , the below program is what I'm running. I'm running it on a Linux > box if makes a difference. > > > for i in 1 2 3 4 5 > do > echo "Welcome $i times" > done > What shell are you using? Did you edit the script on the Linux machine or in Windows? -- Boy! Eucalyptus! On Apr 13, 2:39 pm, Bill Marcum <marcum...

Error: "identifier" expected, "(" found.
I am trying to do an integration for the value of gradPE which has the following equation: gradPE = Gamma*pi*2*Gy(p-2) So I wrote the below code: For p = Mcount+1:N1 M(:,p) = A*M(:,p-1)+B; F = @(Gy)(Gamma*pi*2*Gy(p-2)); gradPE = quad(F, 0, 300); % 0 and 300 are my limits end; Where Gamma = 4256; Mcount = 1; N1 = 1020; %Gy= are values located in an excel sheet {up to 1020 values for Gy}. I even tried to add another anonymous function to F: F = F = @(p) (quad(@(Gy) (Gamma * p...

Why is the difference between "Error Out.ctl" and "Error Out 3D.ctl"?
&nbsp; What is 'Error Out 3D.ctl' in LabVIEW 7.0? [It's found in 'Controls > Array & Cluster'.] Does it differ functionally from the old 'Error Out.ctl' found in 'Controls > Classic Controls > Classic Array & Cluster'? Or are the differences simply cosmetic? Neither of these controls seems to have an entry in LabVIEW Help. &nbsp; Oops - 'Why is' == 'What is' > Does it differ functionally from the old 'Error Out.ctl' found in > 'Controls > Classic Controls > Classic Array & Cluster'...

org.apache.axis cannot be resolved to a type, Syntax error on token "enum", class expected
Hello. Please review the following fragment: org.apache.axis.description.OperationDesc oper; oper = new org.apache.axis.description.OperationDesc(); oper.setStyle(org.apache.axis.enum.Style.RPC); // fails to compile: org.apache.axis cannot be resolved to a type, Syntax error on token "enum", class expected //oper.setStyle(org.apache.axis.constants.Style.RPC);// compiles! I work with eclipse and use JDK 1.4.10. No other jdk is installed on my pc!!! Any ideas? Thanks. >compile: org.apache.axis cannot be resolved to a type, Syntax error on>...

MAC SE: "Bomb" "Sys Error" / Address error" at start
Stephen Buggie (505) 863-2390 Psychology Department Univ. of New Mexico, Gallup February 15, 2006 200 College Road Gallup NM 87301 buggie@unm.edu NEED RESCUE DISK! MAC SE -- BOMB System Error / Address Error ------------------------------------------------------------------------------------------------ Dear Macintosh experts, My Mac SE crashes at power-up. I gives the bell-chime, then it proceeds though the launch sequence. After showing two extension-icons, it crashes. Then a dialogue-box shows the BOMB icon with the message, SORRY, A SYSTEM ERROR HAS OCCURRED --- ADDRESS ERROR It never reaches the desktop; this crash occurs every time. The Mac SE has a 330 meg internal hard drive, System 6.x.x, and a 1.4 meg internal 3.5 floppy drive. There is a SCSI port but no internal CD reader. The b/w screen is extremely sharp in its focus. The computer worked fine until about a year ago, when I stupidly put a file in the wrong folder. It has crashed consistently ever since! It has an assortment of software on the hard drive, but I have backups of everything and am willing to reformat the entire hard drive if necessary to get the computer working again! If I can resurrect the computer, I hope to upgrade the system to System 7.0 or 7.1 . DONE SO FAR: Yes, I have launched it with shift-key down, to turn off the extensions, but it always crashes Ive also tried vari...

Matlab Error: "identifier" expected, "(" found.
>>a = 100;b = 4;c = 1;d = 10;e = 20;f = 100;g = 150;h = 60; >> x0 = [1.1651,1.3316,1.3434,1.4823,1.5203,1.5544,2.1363,2.3997,4.7142]; >> f=@(x)parameterfun(x,a,b,c,d,e,f,g,h) ??? f=@(x)parameterfun(x,a,b,c,d,e,f,g,h) | Error: "identifier" expected, "(" found. Can any one please tell how to overcome this problem,from what I have searched I have found that it is caused because I am using older version of matlab (release 12.1 version 6.1) so please tell how do I over come this. Any help is appreciated On Friday, October 26, 2012 9:47:08 AM UTC+13, Rohit gupta wrote: > >>a = 100;b = 4;c = 1;d = 10;e = 20;f = 100;g = 150;h = 60; > > >> x0 = [1.1651,1.3316,1.3434,1.4823,1.5203,1.5544,2.1363,2.3997,4.7142]; > > >> f=@(x)parameterfun(x,a,b,c,d,e,f,g,h) > > ??? f=@(x)parameterfun(x,a,b,c,d,e,f,g,h) > > | > > Error: "identifier" expected, "(" found. > > > > Can any one please tell how to overcome this problem,from what I have searched I have found that it is caused because I am using older version of matlab (release 12.1 version 6.1) so please tell how do I over come this. > > > > Any help is appreciated Why are you using an anonymous function? Why not simply call your function: x=parameterfun(x0,a,b,c,d,e,f,g,h); "Rohit gupta" <im.rohit@hotmail.com> wrote in message new...

"error C2057: expected constant expression", "error C2466: cannot allocate an array of constant size 0". Why doesn't my simple program work???
Hi: I have the following simple program: #include<iostream> using namespace std; int main(int argc, char* argv[]){ const double L = 1.234; const int T = static_cast<const int>(L); int arr[T]; return 0; } But I get the error message shown in title. Why doesn't my program work? Thanks for help! On 2007-01-20 17:08, hn.ft.pris@gmail.com wrote: > Hi: > I have the following simple program: > > #include<iostream> > using namespace std; > int...

What is "error 8"
I set up an external serial modem using the Red Hat GUI networking tool as a generic modem device. However, when I hit the "Activate" button, I get the message, "Failed to activate device with error 8." Where can I find what "error 8" means? Thanks. No one responded, but for the benefit of any other newbies who encounter this problem, here is the solution: I looked in the System Log and saw that the modem did not find a dial tone. I plugged in a phone line, and the "Activate" command worked fine. (I had not realized that "Activate" meant "Connect.") Crooked River wrote: > I set up an external serial modem using the Red Hat GUI networking tool > as a generic modem device. However, when I hit the "Activate" button, > I get the message, "Failed to activate device with error 8." Where can > I find what "error 8" means? > System error numbers can be found in /usr/include/asm/errno.h The only problem is that there is no assurance that that is what the program is displaying. #define ENOEXEC 8 /* Exec format error */ does not sound like what you are really getting. The best bet would be to look at the source of the program that is producing that error message. Unfortunately, the scattered shell scripts, programs, and whatnot concerned with networking, especially dial-up networking is a spaghetti mess, and if your ...

"unknown mailer error 4" "unknown mailer error 32"
Hi Im running sendmail 8.12.9 on Solaris 8. I got "unknown mailer error 4" and "unknown mailer error 32". What does these messages mean ? Please teach me. Below is maillog. Jun 9 05:50:21 mailserver sendmail[21744]: [ID 801593 mail.info] h58Ke8TK021744: to="|/usr/local/majordomo/wrapper sequencer -l mailinglist -n -h localdomain mailinglist-outgoing", ctladdr=<mailinglist@localdomain> (1/0), delay=00:10:21, xdelay=00:10:13, mailer=prog, pri=48014, dsn=5.3.0, stat=unknown mailer error 4 Jun 9 05:51:24 mailserver sendmail[21744]: [ID 801593 mail.info] h5...

error: parse error before "}" token (newbie needs help)
Hello First post on this board with a question relating to my first venture into xcode, I have a little bit of programming experience on the windows side, im new to macs as well so please go easy on me.. I have system 10.3.9 and am using xcode version 1.5, the question relates the this o'reilly tutorial: http://www.macdevcenter.com/pub/a/mac/2001/06/01/cocoa.html?page=2 If you didnt read it, it is a simple text editor using just an NSTextView component and I am trying to give it the ability to open/save files. Basically upon compilling, I receive 5 errors in the MyDocument.m file, each one a "error: parse error before "}" token" in the following code: #import "MyDocument.h" @implementation MyDocument - (id)init { self = [super init]; if (self) { // Add your subclass-specific initialization here. // If an error occurs here, send a [self release] message and return nil. } return self; } - (NSString *)windowNibName { // Override returning the nib file name of the document // If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this method and override -makeWindowControllers instead. return @"MyDocument"; } - (void)windowControllerDidLoadNib:(NSWindowController *) aController { [super windowControllerDidLoadNib:aController]; if (fileData != nil) { [te...

"Object Expected" error in IE, but no error in Firefox or Opera
When I load the page <https://bugzilla.mozilla.org/attachment.cgi?id=237739> with Internet Explorer 7 RC 1, I get the error "Object Expected" at line 174. When I click on the button, I also get the same error on line 186. This same HTML and JavaScript works perfectly in Firefox and Opera. How can I make the code work in IE? Steve Chapel wrote: > When I load the page > <https://bugzilla.mozilla.org/attachment.cgi?id=237739> with Internet > Explorer 7 RC 1, I get the error "Object Expected" at line 174. When I > click on the button, I also get t...

EVERY "on open" gives "expected end of statement" error-->SOLUTION!
Wanted to share a solution to something which I didn't find on the net: EVERY form in my Microsoft Access 2002 database gave an error any time any code was to be called: form OnOpen, button OnClick, etc. Error was: <b>The expression On Open you entered as the event property setting produced the following error: Expecteed: end of statement.</b> [Where "On Open" could be replaced by "On Click", etc] The problem ultimately was the letter "s" had gotten at the beginning of my module code so that it read: <b>sOption Compare Database</b>... Deleting the "s" fixed it! :) Happy coding, Aaron Sorry, thought <b> would work...don't see how to edit the post...if an admin wants to delete those to make it more readable it would be fine. A Aaron G via AccessMonster.com wrote: > Sorry, thought <b> would work...don't see how to edit the post...if an admin > wants to delete those to make it more readable it would be fine. Nope - AM sends your posts to usenet where plain text is traditional. You'd have to couple the "<b>" with a "</b>", ie, html stuff. 8) Thanks for the info on how the option compare statement can mess things up if incorrectly entered! It's one of those things the intellisense doesn't pick up as an error, I guess. -- Tim http://www.ucs.mun.ca/~tmarshal/ ^o< /#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jak...

Error using SOPC builder
I'm trying to make a SDRAM controller with SOPC builder, but when I change the data width to 8bits I get the following error.. Warning: Signal "az_be_n" of type "byteenable_n" and width 1 must have width of 2, 4, 8, 16, 32, 64, 128. I'm trying to make the system for a 64Mb SDR SDRAM, Micron MT48LC8M8A2P-75. Even when I select the Alliance AS4LC2M8S0-10 chip it does the same thing. So I'm guessing it has to do with a width of 8 bits. Thank you, Eric On Oct 18, 12:39 pm, sendt...@gmail.com wrote: > I'm trying to make a SDRAM controller with SOPC build...

"Error loading design" error
Hi, I'd like to ask a question about "Error loading design" error. My module compiles fine without an error. However, when I tried to simulate it with a testbench for the module, ModelSim gives an error message, saying "Error loading design". I copied & pasted the error message and my code below. I haven't been able to find out how to fix this error. If you see any problem in my code, please let ne know. Thanks. vsim work.test_SaXSb # vsim work.test_SaXSb # Loading work.test_SaXSb # Loading work.SaXSb # ** Warning: (vsim-3009) [TSCALE] - Module 'SaXSb' does not have a `timescale directive in effect, but previous modules do. # Region: /test_SaXSb/X1 # ** Error: (vsim-3033) D:/ ....... /SaXSb.v(11): Instantiation of 'zero_check' failed. The design unit was not found. # Region: /test_SaXSb/X1 # Searched libraries: # work # Loading work.exp_elem # ** Warning: (vsim-3009) [TSCALE] - Module 'exp_elem' does not have a `timescale directive in effect, but previous modules do. # Region: /test_SaXSb/X1/E1 # Loading work.alpha_elem # ** Warning: (vsim-3009) [TSCALE] - Module 'alpha_elem' does not have a `timescale directive in effect, but previous modules do. # Region: /test_SaXSb/X1/A1 # Error loading design module SaXSb (Sx_val, Sx_exp, Sa, Sb); input [7:0] Sa, Sb; output [7:0] Sx_val, Sx_exp; wire [7:0] Sx_val, Sx_exp;...

Lib X11 compile problem /Xlib.h:3573: error: syntax error before "_X_SENTINEL"
Hello all, i try to compile the X11R7.1 packages. For it i have to compile the lib x11 which fails with the following error/log: -bash-2.05b# ./configure --enable-loadable-i18n checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for style of include used by make... GNU checking ...

"token" "token sequence" "scalar variable" "vector" ??
Hi, can someone tell me what the following words mean as per C/clc: 1) token 2) token sequence 3) scalar variable 4) vector "G Fernandes" <ge.fernandes@gmail.com> wrote in message news:1108685930.401684.323430@c13g2000cwb.googlegroups.com... > Hi, can someone tell me what the following words mean as per C/clc: > > 1) token > Section A.1.1(of c99): keyword identifier constant string-literal punctuator > 2) token sequence Think any allowable combination of the above mentioned tokens. e.g., const volatile int *x; > > 3) scalar v...

when i use "vxload bootrom" in the dos shell,i get the error message "not enough memory to load".
when i use "vxload bootrom" in the dos shell,i get the error message "not enough memory to load".why???????? in my config.sys I already set the "DOS=HIGH,UMB"and "FILE=30". my tornado's version is 2.2,and vxworks is 5.5 ...

ABF "error: expected identifier or '(' before '=' token"
When trying to compile an ABF application on a Red Hat Enterprise Linux Server release 5.4,Intel(R) Xeon(R) and II 9.1.2 (int.lnx/ 100)NPTL, I get the following errors : "Processing form 'ylxo60701p' . . . Forcing compilation to create object file. Compiling '218688.c' . . . 218688.c:1420: error: expected identifier or '(' before '=' token E_AB001E Compilation failed" I've found out that the form in question (218688.c) is missing the global FRAME identifier here : FRAME * = { &_form0 }; which should be replaced wi...

"Oracle error occurred, but error message could not be retrieved from Oracle" error when restarting application
Hi, we're using Oracle 10g, in combination with Delphi (7). Application uses Oracle client dll (oraociei10.dll). Quick explenation about the structure (All files are on the network): - A launcher application is started by the client. The launcher application checks an .ini file for the current application versie (.exe filename with a version postfix, e.g. "Application_112.exe"). The launcher starts the executable specified in the .ini file. In this way we can "release" by putting a new .exe file and updating the .ini file. The problem: In our application we've got the functionality to restart the application when a new version is available. If the application detects there is a new version (by checking the .ini file) the user can restart the application. The next thing happens on a restart: - Application starts the launcher again, the handle of the application is passed. - Application closes itself - Launcher waits until the application handle is gone - Launcher restarts application again (new version). When starting the application again, oracle generated the beautiful: "Oracle error occurred, but error message could not be retrieved from Oracle" message. Initial thought was that the Oracle client was not unloaded, so we made the launcher wait up to 60 seconds after the application was closed and before the application is started again. But even then the error occurs. Detail: When not using the oracle client , but the "n...

OT
As a PHILOSOPHICAL follow-on to another thread ... What is the difference between a "lie" being made - versus - an "error in fact" being made? There certainly may be other considerations, but it seems TO ME, that when something is "stated as a fact" and what is stated is not "true" then - if the person making the statement (or reporting what others have said without qualification of this persons opinion to the contrary) KNOWS that it is not true, then it is a "lie" - if the person making the statement (or reporting another's state...

Install expect -5.43 on redhat AS 3 when "make" appear "exp_main_exp.c:32: error"
I want to install expect on my old pc My os type: ------------------------------- Linux localhost.localdomain 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux ----------------------------- first: install ActiveTcl8.6.0.0b1.289006-linux-ix86-threaded.tar.gz next: install expect-5.43 ../configure --with-tclconfig=/opt/ActiveTcl-8.6/lib/ --with-tkconfig=/ opt/ActiveTcl-8.6/lib/ --with-tclinclude=/opt/ActiveTcl-8.6/include/ when make,it appears : [root@localhost expect-5.43]# make gcc -c -I. -I. -I/opt/ActiveTcl-8.6/include -I/usr/X11R6/include - DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/usr/local/lib/expect5.43\" - DEXECSCRIPTDIR=\"/usr/local/lib/expect5.43\" -DTCL_DEBUGGER - DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" exp_main_exp.c exp_main_exp.c: In function `main': exp_main_exp.c:27: error: structure has no member named `result' exp_main_exp.c:32: error: structure has no member named `result' make: *** [exp_main_exp.o] error 1 i google the web,find nothing, Tanks for any suggestion. On Mar 30, 10:20=A0pm, tobetcl <leader...@gmail.com> wrote: > I want to install expect on my old pc I've not seen that error before. What _I_ would do in your situation, unless there is an urgent need to deal with expect source, is to just run teacup install Expect Do you have to use the older version of Expect? If not, by using that teacup command, you&...

Web resources about - syntax error: operand expected (error token is " ") - comp.unix.shell

Expected value - Wikipedia, the free encyclopedia
In probability theory , the expected value (or expectation , or mathematical expectation , or mean , or the first moment ) of a random variable ...

Expected utility hypothesis - Wikipedia, the free encyclopedia
In economics , game theory , and decision theory the expected utility hypothesis is a theory of utility in which "betting preferences" of people ...

Facebook’s ad share expected to grow to more than 15 percent
... coupled with Facebook’s focus on mobile monetization is resulting in some dramatic gains for the company in the ad market. Facebook is expected ...


New IVF project expected to boost camel births
A new laboratory dedicated to improving birth rates of camels in Dubai is expected to complete by September.

Johnny Depp expected to leave Australia to save pets Pistol and Boo
Johnny Depp is expected to leave Australia tonight to save the two pet dogs he brought into Australia without declaring them to quarantine.

Great Ocean Road fires expected to rage for weeks - AdelaideNow Search Search
THE most destructive blazes in Victoria since Black Saturday in 2009 are expected to rage for weeks.

Tight Indonesian presidential election expected to attract record number of voters
A record turnout is expected in the Indonesian presidential election today as the race goes down to the wire between two starkly different candidates. ...

Builders expected to say former prime minister Julia Gillard paid for renovations
Questions of whether union money was used to pay for renovations at the house of former prime minister Julia Gillard in the early 1990s could ...

Perth weather: Thunderstorms, rain expected over Easter long weekend
The weather gods do not appear to be shining on Western Australia this Easter long weekend with thunderstorms and showers tipped for Friday and ...

Resources last updated: 3/23/2016 6:53:35 PM