08-26-2011
rajesh, shouldn't you be using put instead of the get, if you are sending a file across?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies
2. Shell Programming and Scripting
Hi,
The Setup is like this. I'm connecting to Unix machine from my local machine. After connecting to Unix M/c, i need to connect FTP server. Am successful in connecting to FTP server, but am not able to download the file from the ftp server to my local machine. I have different user id's and... (1 Reply)
Discussion started by: ranjith_taurean
1 Replies
3. Shell Programming and Scripting
Hi All,
please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server.
Where as i know the IP for the Unix server.
i could do this process by using ftp command.
pls help me to write as Shell script.
Thanks in advance for all of your answers.:b::b: (3 Replies)
Discussion started by: little_wonder
3 Replies
4. Shell Programming and Scripting
Hi,
I need to copy few files from remote server to local server.
I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
... (5 Replies)
Discussion started by: arunkumarmc
5 Replies
5. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
6. Shell Programming and Scripting
script for to take files from FTP server to UNIX server and Unzipped that files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies
7. UNIX for Dummies Questions & Answers
How do i copy files from Unix Server to my Local Desktop..
ANy ideas..please suggest....V Urgent. (1 Reply)
Discussion started by: win4luv
1 Replies
8. UNIX for Dummies Questions & Answers
How to copy files from Unix server to Local (6 Replies)
Discussion started by: win4luv
6 Replies
9. Shell Programming and Scripting
Hi All,
I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies
10. Solaris
I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output.
Is it possible to transfer files from Windows server to unix server through any shell script?
If so can you please help me with the details.
Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies
put(9E) Driver Entry Points put(9E)
NAME
put - receive messages from the preceding queue
SYNOPSIS
#include <sys/types.h>
#include <sys/stream.h>
#include <sys/stropts.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
int prefixrput(queue_t *q, mblk_t *mp);
/* read side */
int prefixwput(queue_t *q, mblk_t *mp);
/* write side */
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). This entry point is required for STREAMS.
ARGUMENTS
q Pointer to the queue(9S) structure.
mp Pointer to the message block.
DESCRIPTION
The primary task of the put() routine is to coordinate the passing of messages from one queue to the next in a stream. The put() routine is
called by the preceding stream component (stream module, driver, or stream head). put() routines are designated ``write'' or ``read''
depending on the direction of message flow.
With few exceptions, a streams module or driver must have a put() routine. One exception is the read side of a driver, which does not need
a put() routine because there is no component downstream to call it. The put() routine is always called before the component's correspond-
ing srv(9E) (service) routine, and so put() should be used for the immediate processing of messages.
A put() routine must do at least one of the following when it receives a message:
o pass the message to the next component on the stream by calling the putnext(9F) function;
o process the message, if immediate processing is required (for example, to handle high priority messages); or
o enqueue the message (with the putq(9F) function) for deferred processing by the service srv(9E) routine.
Typically, a put() routine will switch on message type, which is contained in the db_type member of the datab structure pointed to by mp.
The action taken by the put() routine depends on the message type. For example, a put() routine might process high priority messages,
enqueue normal messages, and handle an unrecognized M_IOCTL message by changing its type to M_IOCNAK (negative acknowledgement) and sending
it back to the stream head using the qreply(9F) function.
The putq(9F) function can be used as a module's put() routine when no special processing is required and all messages are to be enqueued
for the srv(9E) routine.
RETURN VALUES
Ignored.
CONTEXT
put() routines do not have user context.
SEE ALSO
srv(9E), putctl(9F), putctl1(9F), putnext(9F), putnextctl(9F), putnextctl1(9F), putq(9F), qreply(9F), queue(9S), streamtab(9S)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.10 12 Nov 1992 put(9E)