I still suspect breaking it up is the right answer.
You could remove the spool, use sed on the standard output to asterisk the passwords and write the same file name.
You can probably spool to a named pipe and have sed process that, too, but I am not a fan of named pipes. Even the <(...) and >(...) named pipes of bash may be named pipes in /var that accumulate, if you system does not have /dev/fd/3 and the like, or equivalent:
I use 'mknod p' named pipes when that is the only fitting tool that is left. Too often, some process is left hung trying to open one. You can check your named pipes for hung processes with fuser.
On those nice systems, I love <(...) and >(...) with a passion! The pipe() call creates 2 fd's, which exist in process's pseudo-file space as path names, so the shell can use these names like named pipes, but the process exit() cleans up these named pipes. If a child inherits the same fd #, it has the same path in that process's pseudo-file space, and if the parent closes his fd, it still exists in the child's /dev/fd/. You can create beautiful trees of pipes and processes and get pipeline parallelism, straight parallelism and no temp files, file name collision or temp space worries. Here is a nice parallelism, n parallel sorts into a quick merge:
I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login.
Following the provided link I attempted to update my password to one of my own... (1 Reply)
Hi all,
I am working on a sample backup code, where i read the files per 7200 bytes and send it to server. Before sending to server, i compress each 7200 bytes using zlib compression algorithm using dictionary max length of 1.5 MB . I find zlib is slow.
Can anyone recommend me a... (3 Replies)
It seems that the Francisco Rosales home page has gone off-line.
Is there another source for this? I have found it very useful, but others may also find good use for it - and of course, in turbulent times, I may find myself in a new job too, where I'd like to use it again I'm sure.
... (5 Replies)
Hi
We send *.csv with sensitive data to our customers. Our customers open those files with Excel.
A new requirement is that we password protect those CSV files.
I thought to pack them with ZIP and assign a password to the archive.
But Solaris 10 can't encrypt ZIP files.
$ zip -P... (12 Replies)
I have a snippet file with the shown below:
data file
1 2
1 3
1 3
4 2
3 2
2 1
2 2
5 1
3 2
3 2
2 3
1 4
Actual file has approx 50 Millions such lines with bigger number (9 Replies)
hello,
I have lots of mail clients, with private IPs, sending mail through our mail server. In the header of each mail outgoing I can find something like
Received: from ()
by linux-virtua1.localhost (8.13.8/8.13.8/SuSE Linux 0.8)
...
question is: is there any way to avoid the private... (2 Replies)
Hi!
Can someone explain me exactly this technique? Why a process (PARENT) creates a copy of itself with FORK (CHILD)? What's the reason of this behaviour? Sorry, but I cannot understand the logic behind it.
Thanks. (4 Replies)
Is there any better way of doing this? I only want to find a status of a diff, ie diff the file and return to me whether it is different or not or non-existant.
This example works, however I think it could be less messier:
workd=`pwd`;find $workd -name "*.sum" | while read line ; do... (1 Reply)