08-15-2009
thats because the value of count that you are fetching from database may have some space.. can you post that query and settings(like set head off,set feedback off,set pages 0 etc)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using the shell script file to send mail by "mailx". I do this by cron job, there is no error found. But it is fail, any suggest to me?
How can I resend it automatically? Is there any resend logic by using the mailx? (3 Replies)
Discussion started by: adela
3 Replies
2. Programming
I am currently working on code that simulates a file tail algorithm since the only way to retrieve the required information is from within a file, and this information needs to be retrieved in as close to real time as possible when the event enters the file. I cannot use system("tail <options>")... (6 Replies)
Discussion started by: foureightyeast
6 Replies
3. Shell Programming and Scripting
I've a lot of file with an hyphen on filename, so I use rename for remove him ad substitute with an underscore but it fails
$ rename 's/\-/\_/' *
Unknown option: _
Unknown option: i
Unknown option: r
Unknown option: e
Unknown option: e
Unknown option: _
Unknown option: g
Unknown... (12 Replies)
Discussion started by: cv313x
12 Replies
4. AIX
This is a LPAR that i created earlier.
I want to set an IP address to en0 but it failed.
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
en0
devdbm01
inet0 changed
Method error (/usr/lib/methods/chgif):
... (8 Replies)
Discussion started by: wingcross
8 Replies
5. Red Hat
Hi all,
I got error, when i logged with webmin. please show me the way how can i login with webmin (4 Replies)
Discussion started by: mastansaheb
4 Replies
6. Shell Programming and Scripting
Hello,
I am stuck... i dunno why does my test fail... any idea ?
#!/bin/bash
dos2unix info.txt
Distor=Distributeur
LINE=$(cat info.txt | sed -n 1p)
echo $LINE
echo $Distor
echo ""
echo "123-$LINE-123"
echo "123-$Distor-123"
if ; then
LINE2=$(cat info.txt | sed -n 2p)
echo $Distor... (14 Replies)
Discussion started by: patx
14 Replies
7. Linux
Hi,
I try to telnet to server:
# telnet xx.xxx.1.72 1521
Trying xx.xxx.1.72...
telnet: connect to address xx.xxx.1.72: Connection refused
telnet: Unable to connect to remote host: Connection refused
iptables is off:
# service iptables status
Firewall is stopped.
#
And I have edit... (4 Replies)
Discussion started by: mehrdad68
4 Replies
8. Red Hat
Hi
im using centos 6.4
starting yesterday i have a strange issue that im unable to resolve. the system is booting to GRUB menu and the os is not starting. i tried to run a repair install and the message attached is what i get, what can cause this?
thanks, (1 Reply)
Discussion started by: guy3145
1 Replies
9. Shell Programming and Scripting
Hi Team,
I have a file named as follows: aaa.tar.gz
Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is unable to untar it. Can anyone help me to create a file which I will be able to unzip successfully... (2 Replies)
Discussion started by: kmanivan82
2 Replies
10. Forum Support Area for Unregistered Users & Account Problems
After inputted all required fields in registration page, the below message is shown and cannot go on.
A required field called Custom Date & Time Formats is missing or has an invalid value. (2 Replies)
Discussion started by: Unregistered
2 Replies
qsort(3C) qsort(3C)
NAME
qsort() - quicksort
SYNOPSIS
DESCRIPTION
is an implementation of the quicksort algorithm. It sorts a table of data in place.
base Pointer to the element at the base of the table.
nel Number of elements in the table.
size Size of each element in the table.
compar Name of the comparison function, which is called with two arguments that point to the elements being compared. The
function passed as compar must return an integer less than, equal to, or greater than zero, according to whether its
first argument is to be considered less than, equal to, or greater than the second. uses this same return convention
(see string(3C)).
NOTES
The pointer to the base of the table should be of type pointer-to-element, and cast to type pointer-to-void.
The comparison function need not compare every byte; thus, arbitrary data can be contained in the elements in addition to the values being
compared.
The order in the output of two items which compare as equal is unpredictable.
WARNINGS
If size is zero, a divide-by-zero error might be generated.
SEE ALSO
sort(1), bsearch(3C), lsearch(3C), string(3C), thread_safety(5).
STANDARDS CONFORMANCE
qsort(3C)