09-07-2012
But you agree corona I imagine the command behind a pipe, or I am myself a bit lost...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Could someone help me to get yesterday's date in MMDDYY format.
echo `date '+%m%d%y'`
is giving me today's date in the above format.
Thanks in advance for your help..
Suresh. (1 Reply)
Discussion started by: svannala1
1 Replies
2. Shell Programming and Scripting
I have a few xml files and I want to input say 5 parameters within each file. is it possible to do so with sed?
<parameter>A</parameter>
<parameter>B</parameter>
....
....
And so on.
These parameters are meant to go in just inside:
<?xml... (2 Replies)
Discussion started by: collern2
2 Replies
3. Shell Programming and Scripting
Hello,
I am trying to write a script that has a option of restarting the script from where it failed. I have to write a script called Batch.sh. This script has to run quite a few sql files as shown below:
logcmd.sh -f test1.sql
logcmd.sh -f test2.sql
logcmd.sh -f test3.sql
logcmd.sh -f... (4 Replies)
Discussion started by: rkumar28
4 Replies
4. UNIX for Dummies Questions & Answers
i have a function defined in one ksh
i want to use the same functionality in another ksh
i am using
. ../<ksh name>
but it is not picking that functionality
what i have to do for the same (2 Replies)
Discussion started by: trichyselva
2 Replies
5. Shell Programming and Scripting
Hi,
I am trying to emulate the '|' functionality through pipe function call. I am passing the o/p of exec in parent as input to the exec in child. The buf is readin the o/p but the exec in child is not working. Can somebody checkout the code and point where am i going wrong or missing something.... (3 Replies)
Discussion started by: amejoish
3 Replies
6. UNIX for Dummies Questions & Answers
I'm a Bash Newbie, hope you guys can help.
n.n
Ok, So I need to make a script that will get a list of the Users that are/have logged in (recently).
I've been wondering how to get it with either the last or the who command.
This Poses a problem, as with who, it ONLY shows the Users... (3 Replies)
Discussion started by: lsteamer
3 Replies
7. Shell Programming and Scripting
Hi,
I want a script , which searches the log for the term/phrase "JFSnapshotService::systemSnapshot: Starting data capture. This may take awhile depending upon system workload." and if there is some logging like this, it has to mail me that this data capture process is happening.,
Below is... (2 Replies)
Discussion started by: cratercrabs
2 Replies
8. Shell Programming and Scripting
hi all ,
If pid is not an active process ID, the wait utility will return immediately and the return code will be 0.
i just came across this which means that wait will returm 0 even though the script has failed :( so can anyone tell me what is the exact way to get the return status from wait... (3 Replies)
Discussion started by: Rahul619
3 Replies
9. UNIX for Dummies Questions & Answers
Hi ,
I've written the following code to zip the big file
$dir_temp ="/home/etc/hst
zip -r $dir_temp/file_nm.zip $dir_temp/file_nm
The zip file has been created . When I try to UNZIP the file
with the following command
unzip file_nm.zip
The file got unzipped but created in the... (3 Replies)
Discussion started by: smile689
3 Replies
10. UNIX for Beginners Questions & Answers
what is the following bash command does
grep `date +%Y-%m-%d --date='1 day ago'` /path/to/file/FILE_PREFIX_\`date +%Y%m%d --date='1 day ago'`.dsv | grep -v 'ERROR' | cut -d "|" -f 2 | sed 's/^0/27/' (1 Reply)
Discussion started by: tera
1 Replies
LEARN ABOUT SUNOS
pipemod
pipemod(7M) STREAMS Modules pipemod(7M)
NAME
pipemod - STREAMS pipe flushing module
DESCRIPTION
The typical stream is composed of a stream head connected to modules and terminated by a driver. Some stream configurations such as pipes
and FIFOs do not have a driver and hence certain features commonly supported by the driver need to be provided by other means. Flushing is
one such feature, and it is provided by the pipemod module.
Pipes and FIFOs in their simplest configurations only have stream heads. A write side is connected to a read side. This remains true when
modules are pushed. The twist occurs at a point known as the mid-point. When an M_FLUSH message is passed from a write queue to a read
queue the FLUSHR and/or FLUSHW bits have to be switched. The mid-point of a pipe is not always easily detectable, especially if there are
numerous modules pushed on either end of the pipe. In that case there needs to be a mechanism to intercept all message passing through the
stream. If the message is an M_FLUSH message and it is at the mid-point, the flush bits need to be switched. This bit switching is handled
by the pipemod module.
pipemod should be pushed onto a pipe or FIFO where flushing of any kind will take place. The pipemod module can be pushed on either end of
the pipe. The only requirement is that it is pushed onto an end that previously did not have modules on it. That is, pipemod must be the
first module pushed onto a pipe so that it is at the mid-point of the pipe itself.
The pipemod module handles only M_FLUSH messages. All other messages are passed on to the next module using the putnext() utility routine.
If an M_FLUSH message is passed to pipemod and the FLUSHR and FLUSHW bits are set, the message is not processed but is passed to the next
module using the putnext() routine. If only the FLUSHR bit is set, the FLUSHR bit is turned off and the FLUSHW bit is set. The message is
then passed on to the next module using putnext(). Similarly, if the FLUSHW bit is the only bit set in the M_FLUSH message, the FLUSHW bit
is turned off and the FLUSHR bit is turned on. The message is then passed to the next module on the stream.
The pipemod module can be pushed on any stream that desires the bit switching. It must be pushed onto a pipe or FIFO if any form of flush-
ing must take place.
SEE ALSO
STREAMS Programming Guide
SunOS 5.10 21 Aug 1992 pipemod(7M)