03-30-2014
OK, if you put it back after friday..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Need to delete records from a text file. Very new to this and am using pico. The only way i can think of doing this is to generate an ID for every record then tell it to delete that particular ID. First question is how if possible do i give each entry an ID number, the second is would this code... (1 Reply)
Discussion started by: boyler
1 Replies
2. Shell Programming and Scripting
I have a script like this called "remove.sh":
#!/usr/bin/ksh
rm remove.sh
echo "Deleted myself!"
Since UNIX is a scripting language I thought running it like " sh remove.sh" would generate an error/ or ANYTHING except the echo statements output. But the echo statement came out alright! ... (13 Replies)
Discussion started by: Abhishek Ghose
13 Replies
3. UNIX for Dummies Questions & Answers
hello.,
i am creating a certain sub directories as apart of my requirement,
and then later on i have to delete all those sub directories..
____________________________________________________
DIR1="/home/pavi/cvs/20071426/TEMP"
echo " DIR1 is : " $DESTDIR1
echo... (2 Replies)
Discussion started by: pavan_test
2 Replies
4. UNIX for Dummies Questions & Answers
All
I want to delete all directories which are modified or created two days before in AIX.
Thanx in advance
Regards
Deepak Xavier (1 Reply)
Discussion started by: DeepakXavier
1 Replies
5. UNIX for Dummies Questions & Answers
hi everybody,
urgently need solutioin
aftet i execute the command df -k, i get to see al the memory status blah blah
if some file system has 95% full then what should i do and any help on how and what to do ?
help really appriciated.
cheers (4 Replies)
Discussion started by: ajayr111
4 Replies
6. Shell Programming and Scripting
Hey
I know how to use grep to eliminate a row when nothing there is a character that I dont want. But I encountered a problem where there is nothing there. Heres my example:
Nam1
Nam2 Year
Nam3 Month
So for Nam1 there is nothing in the second column so I want to delete it... so... (1 Reply)
Discussion started by: kylle345
1 Replies
7. Shell Programming and Scripting
Hello, im using ex to manipulate some text. Im trying to delete all the lines except those on which a certain regex can be found.
the important part of the script:
ex temp << 'HERE'
g/regex/p
HERE
this command prints the lines I want to end up with, but it doesnt delete the others.... (2 Replies)
Discussion started by: drareeg
2 Replies
8. UNIX for Dummies Questions & Answers
Hi
I have a file:
r58778.3|SOURCES={KEY=f665931a...,fw,221-705}|ERRORS={16_1:T,30_1:T,56_1:C,57_1:T,59_1:A,101_1:A,115:-,158_1:C,186_1:A,204:-,271_1:T,305:-,350_1:C,368_1:G,442_1:C,472_1:G,477_1:A}|SOURCE_1="Contig_1092402550638"(f665931a359e36cea0976db191ff60ff09cc816e)
I want to retain... (15 Replies)
Discussion started by: Alyaa
15 Replies
9. Shell Programming and Scripting
Hi
I have an AIX server. I'm planning to use the below script to remove 60 days older files.
find /path/ -mtime +60 -exec rm -f {} \;
I just want to make sure it will only remove the files. I don't want the directories to be removed.
If in case it will delete the directories... (2 Replies)
Discussion started by: newtoaixos
2 Replies
10. AIX
I have a directory under my home directory called: my work. I cannot delete this directory and I want to.
If anyone needs additional information. Please let me know.
Any help you can provide is greatly appreciated. (8 Replies)
Discussion started by: Nerdgirl1313
8 Replies
LEARN ABOUT OPENSOLARIS
put
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.11 12 Nov 1992 put(9E)