|
Home > Archive > Unix Programming > April 2006 > Processing N jobs iteratively
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Processing N jobs iteratively
|
|
|
| Hi All,
I am a unix neeophyte. We need some help in creating a script.
This is what I would like to do preferably in the C shell.
We have a list of N jobs.
We want to process this list.
When job 1 is submitted (but not complete), we
want to process (iterate to) the next job in the list.
When the job is complete, we want to be notified via email.
Thanks for your help.
| |
| Chris F.A. Johnson 2006-04-27, 1:28 pm |
| On 2006-04-27, Windy wrote:
> Hi All,
>
> I am a unix neeophyte. We need some help in creating a script.
> This is what I would like to do preferably in the C shell.
Please do not multipost.
If you feel a message belongs in more than one group, cross post
(i.e., place all the groups in the Newsgroups: line of the message
header). If Google groups cannot do that, use a real newsreader to
post to Usenet.
> We have a list of N jobs.
> We want to process this list.
> When job 1 is submitted (but not complete), we
> want to process (iterate to) the next job in the list.
> When the job is complete, we want to be notified via email.
>
> Thanks for your help.
>
--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, is written for the POSIX locale
===== and is released under the GNU General Public Licence
| |
| Rick Jones 2006-04-27, 1:28 pm |
| Chris F.A. Johnson <cfajohnson@gmail.com> wrote:
> On 2006-04-27, Windy wrote:
[vbcol=seagreen]
> Please do not multipost.
> If you feel a message belongs in more than one group, cross post
> (i.e., place all the groups in the Newsgroups: line of the message
> header). If Google groups cannot do that, use a real newsreader to
> post to Usenet.
It might also be good to set a Followup-to: header. Some boilerplate
I trot-out from time to time
One can specify more than one newsgroup in the Newsgroups: line. The
format would look like this:
Newsgroups: group1,group2,group3
with no spaces in the grouplist. This has several advantages (so long
as it is not abused by posting messages to inappropriate groups). Only
one copy of your message must traverse the Internet, saving network
bandwidth; only one copy of your message must be stored on each news
server on the Internet, saving many MB of space world-wide; you only
have to enter the news posting once, saving you time; people only have
to read/skip your post once, saving them time; all responses in any
group can be seen in all groups, keeping everyone up to date with the
conversation.
Also, you can add a Followup-to: header line which will direct all the
follow-ups to a particular group, making it easier for you to look for
responses.
I hope you find this helpful. If you do, please pass it along to your
peers as you see them needing the same advice.
sincerely,
rick jones
--
The glass is neither half-empty nor half-full. The glass has a leak.
The real question is "Can it be patched?"
these opinions are mine, all mine; HP might not want them anyway... 
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
|
|
|
|
|