05-23-2008
HI
read(fd, buffer, n_to_read)
I am trying to use the above call, but i will not be able to read the entire line as i will not now the length of the line before hand.
This part is little tricky to handle.
If you have any idea please let me know.
Regards
Dhana
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have written a script which does some editing in the files, based on user input.This might not be the most elegant way of doing it and there would be many improvements needed.
Please go through it and let me know how it could be improved.
Suggestions are welcome!!
Thanks!... (2 Replies)
Discussion started by: nua7
2 Replies
2. Shell Programming and Scripting
Hi!
Thank you for the help yesterday
This is the finished product
There is one more thing I would like to do to it but I’m not to certain
On how to proceed I would like to log all output to a log in order to
Be able to roll back
This script is meant to be used in repairing a... (4 Replies)
Discussion started by: Ex-Capsa
4 Replies
3. Infrastructure Monitoring
Hello,
I am pretty new to shell scripts and I recently wrote one that seems to do what it should but I am exploring the possibility of improving its performance and would appreciate some help. Here is what it does - Its meant to monitor a bunch of systems (reads in IPs one at a time from a flat... (9 Replies)
Discussion started by: prafulnama
9 Replies
4. UNIX for Advanced & Expert Users
can anyone help to share the knowledge on linux os improvement?
1) os account
- use window AD authentication, such as ldap, but how to set /etc/passwd, where to put user home?
2) user account activity
- how to log os user activity
share the idea and what tools can do that...thx (5 Replies)
Discussion started by: goodbid
5 Replies
5. Shell Programming and Scripting
Hi All,
Here is my script
#! /bin/sh
var1=some email id
var2=some email id
grep -i "FAILED FILE FORMAT VALIDATION" /opt >tmp2
diff tmp1 tmp2 | grep ">" >tmp3
if
then
cat tmp3 | mailx -s " Error Monitoring" $var2
else
echo "Pattern NOt Found" | mailx -s " Error Monitoring" $var1... (1 Reply)
Discussion started by: Gopalak
1 Replies
6. UNIX for Dummies Questions & Answers
Hi This is my Following code:
#!/bin/sh
echo "TOTAL_NO_OF_MAILS"
read TOTAL_NO_OF_MAILS
echo "TOTAL_NO_OF_TICKETS "
read TOTAL_NO_OF_TICKETS
echo "TICKETS_IN_QUEUE"
read TICKETS_IN_QUEUE
rm -rf `pwd`/Focus
echo "Hi Team\nSTATS IN CLRS MAIL BOX\n\n==============================" >> Focus... (11 Replies)
Discussion started by: wasim999
11 Replies
7. Shell Programming and Scripting
Below script is used to search numeric data from around 400 files in a folder. I have 300 such folders. Need help in performance improvement in the script.
Below Script searches 20 such folders ( 300 files in each folder) simultaneously. This increases cpu utilization upto 90% What changes... (3 Replies)
Discussion started by: vegasluxor
3 Replies
LEARN ABOUT DEBIAN
udp_driver_io
Reading/Writing(3) globus xio Reading/Writing(3)
NAME
Reading/Writing - globus_xio_register_read() semantics:
If the waitforbytes parameter is greater than zero, the read will happen asynchronously and be completed when at least waitforbytes has
been read/written.
If the waitforbytes parameter is equal to zero, one of the following alternative behaviors occur:
If the length of the buffer is > 0 the read happens synchronously. If the user is using one of the blocking xio calls, no internal callback
will occur.
If the length of the buffer is also 0, the call behaves like an asynchronous notification of data ready to be read. ie, an asynchronous
select().
In any case, when an error occurs before the waitforbytes request has been met, the outgoing nbytes is set to the amount of data actually
read before the error occurred.
If the handle is not connected, the user should pass in a data descriptor. After the read, this data_descriptor will contain the contact
string of the sender. The user can either get this contact string with GLOBUS_XIO_UDP_GET_CONTACT or pass the data descriptor directly to
globus_xio_register_write() to send a message back to the sender.
Also, if the handle is not connected, the waitforbytes should probably be 1 to guarantee that only one packet is received and the sender
contact isnt overwritten by multiple packets from different senders.
globus_xio_register_write() semantics:
When performing a write, exactly one UDP packet is sent of the entire buffer length. The waitforbytes parameter is ignored. If the entire
buffer can not be written, a GLOBUS_XIO_UDP_ERROR_SHORT_WRITE error will be returned with nbytes set to the number of bytes actually sent.
If the handle is not 'connected', a contact string must be set in the data descriptor to globus_xio_register_write(). This can either be
done explicitly with GLOBUS_XIO_UDP_SET_CONTACT or implicitly by passing in a data descriptor received from globus_xio_register_read().
The udp write semantics are always synchronous. No blocking or internal callback will occur when using globus_xio_write().
Author
Generated automatically by Doxygen for globus xio from the source code.
Version 3.3 Mon Apr 30 2012 Reading/Writing(3)