08-27-2008
put is the reverse of get. Just do:
put filename
6 More Discussions You Might Find Interesting
1. Linux
Hi all,
I am new to this forum, hoping to find the solution to a problem I've been having for days.
I have a VPS on Linux box. I have setup an ftp account with the Plesk control panel. I am trying to receive an ftp data push from a Unix box but they tell me they keep getting permission... (2 Replies)
Discussion started by: carriehoff
2 Replies
2. Shell Programming and Scripting
hi,
another perl question,
I don't understand the below
while (<FILE>) {
push @last5, $_; #add to the end
shift @last5 if @last5 > 5 ; #take from the beginning
}
can someone please explain to me how does
shift @last5 if @last5 > 5 is taking last 5 lines from... (5 Replies)
Discussion started by: hankooknara
5 Replies
3. Shell Programming and Scripting
I need to use pushd and popd to navigate all of the subdirectories in my current directory.
I know how to get into each subdirectory, add it to the stack, and pop back out, but i cant figure out how to get into subdirectories deeper than the first without adding a foreach and if statement for... (1 Reply)
Discussion started by: ollie88r
1 Replies
4. UNIX for Dummies Questions & Answers
We have a cluster of 3 web servers. I'll be updating a single master server and copying info to the other 2 slave servers. What's the best way of synching all of them? Run rsync on each of the slave servers to pull the updates from the master? Or run rsync on the master to push the updates to the... (1 Reply)
Discussion started by: gaspol
1 Replies
5. UNIX for Dummies Questions & Answers
Hi guys, can we get a pushed script for every NIS client like a policy.?
I need to set a symbolic links for for every client.
Thanks ... (1 Reply)
Discussion started by: pianz
1 Replies
6. Shell Programming and Scripting
Hey Guys, Thanks for always being helpful, I have another issue that I need a little insight on how to fix.
See the below script I have and the error I get. I don't understand why it does that, am I not using the continue correctly?
#!/bin/bash -x
# @(#) File: filepush.sh
#... (5 Replies)
Discussion started by: gkelly1117
5 Replies
put(9F) Kernel Functions for Drivers put(9F)
NAME
put - call a STREAMS put procedure
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
void put(queue_t *q, mblk_t *mp);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to a STREAMS queue.
mp Pointer to message block being passed into queue.
DESCRIPTION
put() calls the put procedure ( put(9E) entry point) for the STREAMS queue specified by q, passing it the message block referred to by mp.
It is typically used by a driver or module to call its own put procedure.
CONTEXT
put() can be called from a STREAMS module or driver put or service routine, or from an associated interrupt handler, timeout, bufcall, or
esballoc call-back. In the latter cases, the calling code must guarantee the validity of the q argument.
Since put() may cause re-entry of the module (as it is intended to do), mutexes or other locks should not be held across calls to it, due
to the risk of single-party deadlock (put(9E), putnext(9F), putctl(9F), qreply(9F)). This function is provided as a DDI/DKI conforming
replacement for a direct call to a put procedure.
SEE ALSO
put(9E), freezestr(9F), putctl(9F), putctl1(9F), putnext(9F), putnextctl(9F), putnextctl1(9F), qprocson(9F), qreply(9F)
Writing Device Drivers
STREAMS Programming Guide
NOTES
The caller cannot have the stream frozen when calling this function. See freezestr(9F).
DDI/DKI conforming modules and drivers are no longer permitted to call put procedures directly, but must call through the appropriate
STREAMS utility function, for example, put(9E), putnext(9F), putctl(9F), and qreply(9F). This function is provided as a DDI/DKI conforming
replacement for a direct call to a put procedure.
The put() and putnext() functions should be called only after qprocson() is finished.
SunOS 5.10 28 Apr 1992 put(9F)