...
now it is giving the error schema_ta_example does not exist , why because from the above first method it connect successfully and display the content of table why it is giving the error if i put EOF
...
There's nothing wrong with the here-document ("EOF"), but your script is incorrect. Remove the ">" character right before your query and put the sql terminator ";" after it.
Hi,
I'd like to access a windows directory from aix with samba client.
To allow direct access (not interactive), i'm using EOF like:
smbclient \\\\winserver\\windir 'passwd' -U usersmb << EOF
cd subwindir
put myfile
EOF
The access is correct but does somebody know how to trap errors... (1 Reply)
Hello, you are an awesome crowd! You answered my last questions, thank you sooo much!
I am trying to write a korn shell script that will record the memory my application is using (HP-UX B.11.11) and I have this:
if (( $APP > $THRESHOLD ))
then
echo "Warning message will display"
cat... (2 Replies)
Hello all,
I have unix file that ends with the following EOF '9999999999'
I want to remove the '\n' character after EOF. What is the command that should be included in the script, before sending the file?
will this work:
$ echo "<99999999999>\c" >> <filename>
thanks in advance. (3 Replies)
hi guys
i have such simple script, which i'm executing on AIX 5.3
#!/usr/local/bin/expect
spawn passwd exptest
set password 123
expect "*password:*"
send "$password\r"
expect "*password again:*"
send "$password\r"
expect eof
the output is following:
spawn passwd exptest
sh:... (4 Replies)
I'm trying to connect to oracle with the following code in the script:
checksqlerror{
if
echo $1
exit
fi
}
$SQLPLUS username/password@schemaname
checksqlerror "failed to connect to oracle"
If I'm passing wrong schema name,instead of executing checksqlerror it stops and expects user... (2 Replies)
How can I write EOF into a file?
I tryed to do as follows:
size=sizeof(EOF);
end_of_file=EOF;
write(fdMutexRichieste, &end_of_file, size);
But it does non work correctly,
becouse in the next cicle (using lseek(..., SEEK_END) of my code it seems to ignore my EOF and use the LAST... (5 Replies)
In shell file, i am writing following statement:
cat > File1.sh <<EOF
set feedback off
set serveroutput on
cat > File2.sh <<EOF
contents of second file
EOF
Contents of First file
EOF
Actually, i want these bolded statements in File1.sh as it.
But after first EOF, contents are... (1 Reply)
Hey!
Can I write a routine that allows me to in a txt file check line by line until the end of file?
something like
until do
---some code---
done
maybe it is a stupid question but I never learned shell scripts and I need this :p
thanks in advance (1 Reply)
Hi friends ,
I am confused with << EOF
EOF
Most of the cases I found
sqlplus $db_conn_str << EOF
some sql staments
EOF
another exapmle is
#!/bin/sh
echo -n 'what is the value? '
read value
sed 's/XXX/'$value'/' <<EOF
The value is XXX
EOF (1 Reply)
Hey guys... first post here...
I have set up the following cron to create daily backups for me and rotate them weekly:
date=`date +%d`; tar -zcvf /home/mysite/backups/backup_dev_$date.tgz /home/mysite/public_html/dev/app --exclude=/home/mysite/public_html/dev/app/tmp
However, I keep... (4 Replies)
Discussion started by: Crazy Serb
4 Replies
LEARN ABOUT DEBIAN
ldns_bgetc
ldns(3) Library Functions Manual ldns(3)NAME
ldns_bget_token, ldns_bgetc, ldns_bskipcs-
SYNOPSIS
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
ssize_t ldns_bget_token(ldns_buffer *b, char *token, const char *delim, size_t limit);
int ldns_bgetc(ldns_buffer *buffer);
void ldns_bskipcs(ldns_buffer *buffer, const char *s);
DESCRIPTION
ldns_bget_token() returns a token/char from the buffer b. This function deals with ( and ) in the buffer, and ignores when it finds them.
*b: the buffer to read from
*token: the token is put here
*delim: chars at which the parsing should stop
*limit: how much to read. If 0 the builtin maximum is used
Returns s 0 on error of EOF of b. Otherwise return the length of what is read
ldns_bgetc() returns the next character from a buffer. Advances the position pointer with 1. When end of buffer is reached returns EOF.
This is the buffer's equivalent for getc().
*buffer: buffer to read from
Returns EOF on failure otherwise return the character
ldns_bskipcs() skips all of the characters in the given string in the buffer, moving the position to the first character that is not in *s.
*buffer: buffer to use
*s: characters to skip
Returns void
AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.
REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html
COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
ldns_buffer. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl.
30 May 2006 ldns(3)