07-06-2005
Thanks for the detailed responses.
I will try to implement some of the ideas.
I.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I wrote this shell script to validate filed numbers for input file. But it take forever to complete validation on a file. The average speed is like 9mins/MB.
Can anyone tell me how to improve the performance of a shell script?
Thanks (12 Replies)
Discussion started by: ozzman
12 Replies
2. Linux
Hi,
I am trying to login using ssh on Red Hat Linux 5 server,
The password appears immediately but after I enter the password it takes about 90 seconds to login completely.
Please suggest what changes require?
Regards,
Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies
3. UNIX for Dummies Questions & Answers
Hello,
like the title says, how can i measure the time it takes to load a module in Linux, and how how can i measure the time it takes to load a statically compiled module.
/Best Regards Olle
---------- Post updated at 01:13 PM ---------- Previous update was at 11:54 AM ----------
For... (0 Replies)
Discussion started by: ollebanan
0 Replies
4. UNIX for Dummies Questions & Answers
We are running unix. After a reboot of the server we have found that changing password takes a long time. if type in passwd "username" you can type in the 1st instance of the password , press enter , then it will wait for about 3 minutes before bringing up the confirm password line typing it in... (4 Replies)
Discussion started by: AIXlewis
4 Replies
5. Shell Programming and Scripting
Dear experts
I have a 200MG text file in this format:
text \tab number
I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways?
I dont want to split the file since this one is already splitted.
I use this command: sort -fd file >... (12 Replies)
Discussion started by: voolek
12 Replies
6. Programming
Hello,
I have a question about what happens when I copy the file which is being written by another process on Solaris 9/SPARC, UFS file system.
in particular, I want to know what happens while some process is reading the file using fread or mmap, another process try to write something on the... (4 Replies)
Discussion started by: wipe3out
4 Replies
7. Solaris
It's almost 3 days now and my resync/re-attach is only at 80%. Is there something I can check in Solaris 10 that would be causing the degradation. It's only a standby machine.
My live system completed in 6hrs. (9 Replies)
Discussion started by: ravzter
9 Replies
8. UNIX and Linux Applications
Hi,
we currently having a issue where when we send jobs to the server for the application lawson, it is taking a very long time to complete. here are the last few lines of the database log.
2012-09-18-10.35.55.707279-240 E244403536A576 LEVEL: Warning
PID : 950492 ... (1 Reply)
Discussion started by: techy1
1 Replies
9. Shell Programming and Scripting
Hi,
I wish to check the return value for wget $url.
However, some urls are designed to take 45 minutes or more to return.
All i need to check if the URL can be reached or not using wget.
How can i get wget to return the value in a few seconds ? (8 Replies)
Discussion started by: mohtashims
8 Replies
10. Shell Programming and Scripting
It takes 6 hrs for a 90 GB zip file that i am copying / transferring from serverA onto serverB.
scp user1@serverA:/opt/setup/cash.zip .
Output:
cash.zip 21% 19GB 4.7MB/s 4:11:46 ETA
uname -a
SunOS serverB 5.11 11.2 sun4v sparc sun4vCan you please suggest if i could do... (11 Replies)
Discussion started by: mohtashims
11 Replies
LEARN ABOUT CENTOS
ares_query
ARES_QUERY(3) Library Functions Manual ARES_QUERY(3)
NAME
ares_query - Initiate a single-question DNS query
SYNOPSIS
#include <ares.h>
typedef void (*ares_callback)(void *arg, int status,
int timeouts, unsigned char *abuf, int alen)
void ares_query(ares_channel channel, const char *name,
int dnsclass, int type, ares_callback callback,
void *arg)
DESCRIPTION
The ares_query function initiates a single-question DNS query on the name service channel identified by channel. The parameter name gives
the query name as a NUL-terminated C string of period-separated labels optionally ending with a period; periods and backslashes within a
label must be escaped with a backslash. The parameters dnsclass and type give the class and type of the query using the values defined in
<arpa/nameser.h>. When the query is complete or has failed, the ares library will invoke callback. Completion or failure of the query may
happen immediately, or may happen during a later call to ares_process(3) or ares_destroy(3).
The callback argument arg is copied from the ares_query argument arg. The callback argument status indicates whether the query succeeded
and, if not, how it failed. It may have any of the following values:
ARES_SUCCESS The query completed successfully.
ARES_ENODATA The query completed but contains no answers.
ARES_EFORMERR The query completed but the server claims that the query was malformatted.
ARES_ESERVFAIL The query completed but the server claims to have experienced a failure. (This code can only occur if the
ARES_FLAG_NOCHECKRESP flag was specified at channel initialization time; otherwise, such responses are ignored at the
ares_send(3) level.)
ARES_ENOTFOUND The query completed but the queried-for domain name was not found.
ARES_ENOTIMP The query completed but the server does not implement the operation requested by the query. (This code can only occur
if the ARES_FLAG_NOCHECKRESP flag was specified at channel initialization time; otherwise, such responses are ignored at
the ares_send(3) level.)
ARES_EREFUSED The query completed but the server refused the query. (This code can only occur if the ARES_FLAG_NOCHECKRESP flag was
specified at channel initialization time; otherwise, such responses are ignored at the ares_send(3) level.)
ARES_EBADNAME The query name name could not be encoded as a domain name, either because it contained a zero-length label or because it
contained a label of more than 63 characters.
ARES_ETIMEOUT No name servers responded within the timeout period.
ARES_ECONNREFUSED No name servers could be contacted.
ARES_ENOMEM Memory was exhausted.
ARES_ECANCELLED The query was cancelled.
ARES_EDESTRUCTION The name service channel channel is being destroyed; the query will not be completed.
The callback argument timeouts reports how many times a query timed out during the execution of the given request.
If the query completed (even if there was something wrong with it, as indicated by some of the above error codes), the callback argument
abuf points to a result buffer of length alen. If the query did not complete, abuf will be NULL and alen will be 0.
SEE ALSO
ares_process(3)
AUTHOR
Greg Hudson, MIT Information Systems
Copyright 1998 by the Massachusetts Institute of Technology.
24 July 1998 ARES_QUERY(3)