If you are using send and recv I don't see the point in testing for eof or reading data one character at a time. send and recv have perefectly reasonable ways to deal with data streams without the stdio constructs. The probable cause for your second page eof failure is a logic problem in testing for eof and/or that the recv hasn't read any data and the old data is still stored in memory. Don't know because you haven't posted sample code.
Here's a hacked up echo client with eof inclusions for an example of send and recv..it may help.
Hi guys...
I'm working on #!/bin/sh script in a Solaris 7 box that should send several files over to another machine via FTP. Here's what the script looks like:
# This script will send the daily MSP customer counts
# to the Crystal Reports server located at 192.168.2.106
cd... (2 Replies)
Hi,
I am using the mailx command to send email to multple users. The command works fine when i am sending mail to a single user but when i insert multiple email ids inside the quote it does not work. All the email ids are coming from a property file.Please have a lookt at the property file and... (4 Replies)
hi,
i'm pretty new to this unix. i've been asked to create a shell script which will pick up the email id from a text file(stored in same machine, same directory) searches for that id in another file in which a product name( a one line text) is mentioned against it. then it should send a mail... (0 Replies)
Hi
All,
I have AIX 5.3 server. I am not able to transfer multiple file in mail but I can send one file at a time. the following command I am using to send multiple file
mail -s 'PICS EXP RATE Logs' lger@nd.com < /data02/transfer/*_experience_rate_log.txt
but this not working. i can send... (2 Replies)
hi,
how to send multiple files from the shell script
eg : i have
/home/adm/file1
/home/adm/file2
/home/adm/cfg
how can i attach these files in the mail ? (1 Reply)
Hello ,
I am trying to send an email with two attachments . I have tried all previous suggestion in this forum but none worked. I could send one attachment in an email by
uuencode $file "$file" | mailx -m -s "File" xxx@xx.com
but unable to send multiple attachments .
I have tried
... (8 Replies)
We don't have uuencode installed in our machines..... Please tell me how to send mail with multiple attachments ??? URGENT !!!!!
Please tell me using command line (or) scripts..........
please......
Thanks in Advance.... (1 Reply)
I have a file 1.txt which has 3 mail ids as below:
Maillist=abc@gmail.com def@gmail.com rcg@gmail.com
Now I want to write a script which will read this file and send the mail to all the users present in this file. (6 Replies)
Discussion started by: Vivekit82
6 Replies
LEARN ABOUT OPENSOLARIS
shutdown
shutdown(3XNET) X/Open Networking Services Library Functions shutdown(3XNET)NAME
shutdown - shut down socket send and receive operations
SYNOPSIS
cc [ flag ... ] file ... -lxnet [ library ... ]
#include <sys/socket.h>
int shutdown(int socket, int how);
DESCRIPTION
The shutdown() function disables subsequent send() and receive() operations on a socket, depending on the value of the how argument.
PARAMETERS
how Specifies the type of shutdown. The values are as follows:
SHUT_RD Disables further receive operations.
SHUT_WR Disables further send operations.
SHUT_RDWR Disables further send and receive operations.
socket Specifies the file descriptor of the socket.
RETURN VALUES
Upon successful completion, shutdown() returns 0. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The shutdown() function will fail if:
EBADF The socket argument is not a valid file descriptor.
EINVAL The how argument is invalid.
ENOTCONN The socket is not connected.
ENOTSOCK The socket argument does not refer to a socket.
The shutdown() function may fail if:
ENOBUFS Insufficient resources were available in the system to perform the operation.
ENOSR There were insufficient STREAMS resources available for the operation to complete.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO getsockopt(3XNET), recv(3XNET), recvfrom(3XNET), recvmsg(3XNET), select(3C), send(3XNET), sendto(3XNET), setsockopt(3XNET), socket(3XNET),
attributes(5), standards(5)SunOS 5.11 10 Jun 2002 shutdown(3XNET)