I'm trying to parse an xml file in C using libxml2, however the function xmlParseFile returns
e100.xml:12764: parser error : Premature end of data in tag ErrorStrings line 11211
^
e100.xml:12764: parser error : Premature end of data in tag APIDefinitionTable line 2
^
I have tested the xml file with W3C validator and no errors were reported, the file also opens find in firefox, and looking at the file with a hex editor I can see any errors where those lines are.
We make everyday a DB Mysql backup on Linux redhat Enterprise. We are using a bash shell script (and putting it in the crontab) to execute it automatically everyday. We added a line to this script telling, once the backup has completed, to find old backup files (stored on hard disk after each backup) older than x days to remove them. We use the find command (search for file type) with the mtime option and in combination with rm command. Everything runs ok but we also want to add some new code to the same line: If find command cannot find anything or fails, for example if it cannot delete file or fails, send the error message (standard error output) to an error file (like error000001 and increasing) and mail the errorxxxx file to an email address for example to admin@companyname.com. What would be the code for this issue to add it to our find command in the same bash shell script??
how to rectify these errors.. RCC: Error in 'appchooser.qrc': Cannot find file 'accessories-dictionary.png' RCC: Error in 'appchooser.qrc': Cannot find file 'akregator.png' RCC: Error in 'appchooser.qrc': Cannot find file 'digikam.png' RCC: Error in 'appchooser.qrc': Cannot find file 'k3b.png' RCC: Warning: No resources in 'appchooser.qrc'.
Parse error: syntax error, unexpected '@' in C:xampphtdocsminippromail.php on line 8 .......its not recognizing the '@' symbol. heres the code im working with
<?php $receiver = myfriend@ourmail.co.in; $subject = wish; $content = Hi! My dear friend how are you.; $sender = myself@ ourmail.co.in ; $headers = From: $sender; mail($receiver,$subject, $content,$headers); echo Mail has been sent successfully.; ?>
i have Ubuntu10.10 (kernel-2.6.35-22-generic) installed. struct stat StatBuff;
[Code]...
I have mounted a windows share folder on /mnt. When i gave any directory within /mnt/ to stat function it fails with errorno 75. perror shows "Value too large for defined data type". Example 1 is fail but Example 2 works fine.
I have installed it++ on suse11.2 I have downloaded an example project and everytime i try to "make"..error "/bin/sh: line 1: .dependencies: Permission denied" comes up.I have tried to run as root but this hangs on "checking dependencies" and gives no action.
I am a newbie in unix shell script programming . After I have tried to execute this code , I found the problem said that "syntax error near unexpected token done" . I don't know that where is the mistake in my code . Could anyone help me out this problem ?, PS* : I executed it in Redhat Enterprise Linux 4 and this is my code :
#!/bin/ksh # Purge Script # Input: # 1. path (absolute path) # 2. filename (does not apply to empty folder name) # 3. retention policy (in day)
I'm working on a project where I am converting a C file to C++. I have worked out 99% of the errors but there is still one lingering one that I cant seem to figure out. I get the following error when compiling with g++
Code: mscp.cpp:749: error: invalid conversion from const void* to move mscp.cpp:750: error: invalid conversion from const void* to move
I wonder how error handling is done in C in real applications, by returning a error code when something goes wrong, or by using setjmp and longjmp, or something else?
Well I got an strange error while I am programming. In fact, I am doing fast udp communication and testing the communication. In order to do it, I have done a program which test how many frame i manage to receive by changing the flow( between 800 Mb/s to 950Mb/s). The flow and number of Frame are defined in an other computer and every thing about that is alright. While I am testing the number of Frame received 100 time, sometimes, I get 995 receveid et the next 1005 receveid instead of 1000. The delay for receiving frame lasts much more than the real delay.
So how could this error happen and how can I do for this error to not occur anymore?
I've been told to move my code from MFC to linux platform, and so I did, trying to keep as much as I can on the way, now, I had a dll and application, the application I rewrote all anew while the dll I only made changes so it'll be an ".so" file, now, when I try to link using "dlopen", I get the message "undefined symbol: _ZN5ImageC1EiiPh", now, Image is a class in the DLL, which even makes its own ".o" file for the DLL itself. I just can't understand why it happens. I use Image in functions which are not in Extern "C", but the functions I want to use don't use it. Also, I have many globals in the DLL, (because that's how the DLL was written in the past) but none of them is Image...
Is the problem with the fact I include a c++ class in the DLL? How can I solve such a problem? I tried messing with how I link it, but I think that's not the issue here.
I use g++ and -rdynamic --export-dynamic -ldl -lrt for the application
and for the dll I use -shared -Wl,-soname, and -lm, and for the .o files of the dll -Wall -fPIC (although for some reason it doesn't let me do it through the makefile and I needed to do that by hand, which was a little weird. I put it in tag, I put it in line, but it still did nothing...
I've got a 'nested' for loop which has a grep in it, if the grep fails there's no output - however the error code is still $0 and the second for loop is still entered, there's also a grep in the second for loop.I guess ultimately what i need to know is whether there's a way of making grep generate an error code. when no results are found?
I have submitted the following to Bugzilla as well. I have a Fortran routine with a C signal handler. When a signal is caught, the signal handler calls gdb with a script argument to the system() call to output a backtrace. When I build the fortran file with the -g option, run the program, and send it a signal,I receive the error message "stack.c:295: internal-error . Without the -g option the error message does not appear but as expected I get limited output in my backtrace. Below is a description of the environment in which the bug is experienced, output from gdb showing the bugs occurrence, as well as source code and a Makefile to reproduce the bug. The problem occurs in gdb 6.8 but I have seen the same results with gdb 7.1
i have to find time in nanosecond of a particular process and for that i am using clock_gettime() function.i tried different codes i got from net but getting same error Quote:error: �CLOCK_PROCESS_CPUTIME_ID� undeclared (first use in this function)i have included relavent header file of time also. and complied the whole code that i got from net. that was working fine and giving output. but when i use some of the relavent code that i need it gives me this error. plz tell me am i missing something aur using the code in a wrong way?heres my code!