[Camelot-pm] RE: Camelot-pm Digest, Vol 1, Issue 4

George Woolley george at metaart.org
Wed Jul 9 20:59:27 CDT 2003


Ronen,
OK. I finished some things and am looking at your problem again.
Have you solved it? If so, let us know.  <<<<<<

I don't know much about procmail
and I don't grok the broader problem you are addressing.
But I gather that your mission at this time
is just to create some predefined files.
So maybe I can be of some help anyway.

I've written a crude shell of a prototype for the problem as I understand it.
My intent in writing it was to illicit information.
(I'm definitely not clear on exactly what you wish to generate.)
But then I realized I have no idea 
how deep you into programming and into perl.
I think I write fairly simple code, 
but one person's simple is another's hopelessly complex.
I'm not sure what would be useful for you.

So I'd like to have some idea what you feel <<<<<<
your grasp is of programming and of Perl is.
What kind of communication are you looking for here?
Just some general insights or what?

George

On Tuesday 08 July 2003 1:13 pm, Ronen Kfir wrote:
> * This script I wrote is designed to send mail messages with predefined
> attachments, as an alerts coming from Big Brother system. My SMS server has
> to get messages in acertain format within attachment. That is how it works:
> As soon as mail arrives from Big Brother, files named "down" & "up"
> generated by a .procmailrc file. The down & up files are trigger files that
> once exists, generate a mail massage with the predefined attachment (which
> are different for, which is specific for each server & service (there are
> 23 servers & 4 services). There is a directory tree of all servers &
> services. Each time down & up files generates in the right path
> respectively to the service+server damaged. My mission now is to create the
> predefind attachment files. As I mentioned it is something around 100
> files, so I would like to automate the proceedure of creating them. * a few
> examples: "055405910 http server1 is down"                    goes to dir
> server1, subdir http. Similar lines goes to files under                    
>  								    		  all the servers under http dir "055405910 disk on server6
> is full"                 goes to dir server6, subdir disk. Similar lines
> goes to files under                      								    		  all the servers
> under disk dir
>
>
> The diggits are cell phone no. the message is the template, only the server
> name is to be changed. Each line from the example goes to one file. In each
> file possibly more than line, with the same message, but different cell
> phone.
>
>  Ronen Kfir
> System Administrator
> T.A.U Computing Division
> Tel: 972-3-6407416
> Fax: 972-3-6405158
> cellular: 972-55-405910
> E-mail: ronenk at tauex.tau.ac.il
>
>
>
> -----Original Message-----
> From: camelot-pm-request at mail.pm.org
> [mailto:camelot-pm-request at mail.pm.org] Sent: Tuesday, July 08, 2003 8:01
> PM
> To: camelot-pm at mail.pm.org
> Subject: Camelot-pm Digest, Vol 1, Issue 4
>
>
> Send Camelot-pm mailing list submissions to
> 	camelot-pm at mail.pm.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mail.pm.org/mailman/listinfo/camelot-pm
> or, via email, send a message with subject or body 'help' to
> 	camelot-pm-request at mail.pm.org
>
> You can reach the person managing the list at
> 	camelot-pm-owner at mail.pm.org
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of Camelot-pm digest..."
>
>
> Today's Topics:
>
>    1. Re: create files in multi directories     (George Woolley)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 7 Jul 2003 14:01:13 -0700
> From: George Woolley <george at metaart.org>
> Subject: Re: [Camelot-pm] create files in multi directories
> To: camelot-pm at mail.pm.org
> Message-ID: <200307071401.13493.george at metaart.org>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> Ronen,
> An interesting problem.
>
> Well, the more I look at what you've supplied,
> the more I realize that you've provided a lot of information.
>
> Still, I'm not clear.
> Answers to the following would be helpful:
> * What's the motivation for what you wish to do?
> * Could you give a single example of a template
> and how it would get transformed for a particular file
> including the rule for the transformation?
> * In this context,
> what is the distinction between source and template?
>
> George
>
> P.S. Since there are only a few of us here
> and since this small group is focused more on perl culture
> than on perl coding,
> you may wish to also present this problem elsewhere
> (if you haven't already).
> That being said,
> questions like this are certainly welcome here.
>
> >Date: Mon, 7 Jul 2003 14:58:56 +0300
>
> From: "Ronen Kfir" <RonenK at tauex.tau.ac.il>
>
> >Hi,
> >How would I create a bunch of files with the same name, save them under
> >the same root directory, but only in part of the subdirectories &
> >change one word in the text inside the files? The text of the files is
> >short (15 words at the most), so it can be either copy of another file,
> >or a text I would edit inside the file. The names of my directory tree
> >looks like this:
> >                                      dir1
> >		             /     |      \
> >                           dir2     dir3     dir4
> >		    /  |         /  |        |     \
> >	       dir5  dir6 dir5 dir6  dir5 dir6
> >
> >I want to create a few sets of files. One set goes only to dir5, one
> >set goes only to dir6, etc. the common thing to whole directory tree is
> >the files name. The uncommon thing is the text. In each set, the text
> >stays the same, but only one word- changes. The word, which supposes to
> >be changed, is known- by location in the template & by the source &
> >destination.
> >
> >Cheers
> >
> >Ronen Kfir
> >System Administrator
> >T.A.U Computing Division
> >Tel: 972-3-6407416
> >Fax: 972-3-6405158
> >cellular: 972-55-405910
> >E-mail: ronenk at tauex.tau.ac.il
> >
> >_______________________________________________
> >Camelot-pm mailing list
> >Camelot-pm at mail.pm.org http://mail.pm.org/mailman/listinfo/camelot-pm
>
> bAbE oruhkuhl:
>
> vizzit mE 8 http://www.metaart.org/firefly.
>
> -------------------------------------------------------
>
>
> ------------------------------
>
> _______________________________________________
> Camelot-pm mailing list
> Camelot-pm at mail.pm.org http://mail.pm.org/mailman/listinfo/camelot-pm
>
>
> End of Camelot-pm Digest, Vol 1, Issue 4
> ****************************************
> _______________________________________________
> Camelot-pm mailing list
> Camelot-pm at mail.pm.org
> http://mail.pm.org/mailman/listinfo/camelot-pm




More information about the Camelot-pm mailing list