FWIW: find supports the -mode option - you use this to test permissions bits.
Yes, I'm aware of this, it was just an example.
Quote:
Originally Posted by jim mcnamara
Your generic filter invokes a whole new process, which may not be all that efficient when compared to other options available to a command.
Certaintly. A pure bash solution (less versatile as it does not use xargs) I though was as simple as:
Quote:
Originally Posted by jim mcnamara
Have you considered the concept of a coprocess using named pipes?
No, I didn't, how could it be written? anyway you gave me an idea: taking the 'sh' out of xargs and run it on a pipe:
It's not as fast as the pure bash solution, but is cheaper to run "echo"s than "sh"s processes. If it was possible to for xargs to output the command without actually running it, it should really fast (there is no such option AFAIK)
;) Hello,
i have written a mail previously but now i have written a script to monitor the status of the unix system process,in which i redirect the out put to file now i have a problem filtering the process that are running and stopped. in fact i want to filter for the processes that have... (6 Replies)
Hello,
On my machine, all mail is stored in my /var/spool/mail.
IS there a way to direct all mail that goes there into a namep pipe?
Thank you,
Dado (4 Replies)
I have to grep a pattern. scenario is like :-
Suppose "/etc/sec/one" is a string, i need to check if this string contains "one" using any utility
something like
if /etc/sec/one | grep ; then
Thanks in advance
Renjesh Raju (3 Replies)
Hi all,
I have some files with different extensions. I want to list the files that doesnt end with particular extension for eg .txt. I want to list all files except .txt. How can I do the same?
Thanks
Ananth (2 Replies)
Hi!!
I have a bit of a task here and filtering/scripting not my strongest. I have to collect info of approx 1100 hdiskpower.so i have appended all the hdisk into a text file and i need it to run the command lscfg -vl to confirm if the drive is symmetrix. here's what i have so far
at... (3 Replies)
Hi
I am interested in DNS resolving a set of sites and each time the output is different-
$ host www.yahoo.com
www.yahoo.com is an alias for fd-fp3.wg1.b.yahoo.com.
fd-fp3.wg1.b.yahoo.com is an alias for ds-fp3.wg1.b.yahoo.com.
ds-fp3.wg1.b.yahoo.com is an alias for... (1 Reply)
Hi experts,
I have a file image.csv as below:
COMPUTERNAME,23/07/2013,22/07/2013,21/07/2013,20/07/2013,19/07/2013,18/07/2013,17/07/2013
AED03852180,3,3,3,3,3,3,3
AED03852181,3,3,3,3,3,3,1
AED09020382,3,0,3,0,3,3,3
AED09020383,1,3,3,3,2,1,3
AED09020386,3,3,0,3,3,0,3 ... (4 Replies)
Hi guys,
I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file
for eg:
file 1:
xx|yy|"xyz|zzz"|zzz|12...
using below awk command
awk 'BEGIN {FS=OFS="|" } print $3
i would get xyz
But i want as :
xyz|zzz to consider as whole column... (13 Replies)
Discussion started by: rohit_shinez
13 Replies
LEARN ABOUT HPUX
smfi_register
smfi_register(3N)smfi_register(3N)NAME
smfi_register() - registers a set of filter callbacks for sendmail
SYNOPSIS PAMAMETERS
descr Specifies a filter descriptor of type describing the filter's functions.
DESCRIPTION
The creates a filter using the information given in the smfiDesc argument. must be called before the routine. Multiple calls to the rou-
tine within a single process is not allowed.
The structure has the following members:
A NULL value for any callback function indicates that the filter does not wish to process the given type of information and the filter
returns the value.
Notes
The flags field must contain the bitwise OR of 0 (zero) or more of the following values:
This filter adds headers.
This filter changes and deletes headers.
This filter replaces the body of the message during the filtering process.
may have significant performance impact if other filters do body filtering after
This filter adds recipients to the message.
This filter removes recipients from the
message.
RETURN VALUE
The routine may return for any of the following reasons:
o Memory allocation failure
o Incompatible version or illegal flags value
AUTHOR
was developed by the Sendmail Inc.
SEE ASLO smfi_main(3N), smfi_setconn(3N), smfi_settimeout(3N), smfi_opensocket(3N), smfi_setbacklog(3N), smfi_setdbg(3N), smfi_stop(3N).
on
smfi_register(3N)