On Thu, 20 Mar 2003, McKown, John wrote:

> OK, so I have a corrupted mindset, coming from MVS <grin>. But suppose that
> I want to compile a LOT of programs. In MVS, I code up some JCL and submit
> it to run later. When it completes, I get a notify to my TSO id and look at
> the output in SDSF. I repeat this for however many compiles that I want to
> do. Perhaps doing the submissions over a period of time. How do I do that in
> Linux (or any UNIX)? In VM/CMS, I remember a CMSBATCH virtual machine which
> worked a bit like the MVS initiator. The best that I can think of to do in
> Linux is:
>
> nohup compiler and switches 1>stdout.unique.qualifer
> 2>stderr.unique.qualifer &

for p in list of programs ; do echo compile $p '|' batch
                  done | bash

>
> This would run my compile "in the background" so to speak (or at least not
> tie up my terminal). I could do this any number of times. But this would
> have all the compiles running at the same time. So now I'm impacting
> performance for others (even if I "nice" the compiles). Now I have 50
> programmers all doing the same. My machine is a mess. Is there an equivalent
> to an initiator where people can "submit" work to be done (compiles, shell
> scripts, whatever) and the system will schedule it and the sysadmin can
> control it (I.e. only do 5 at a time, let the others wait)

batch will sort of sort it out; it will run more depending on
loadaverage.

>
> Or am I worrying about nothing since Linux developers don't do thing this
> way anyway. I.e. queuing up 20 compiles while going to lunch and surfing the
> web and generally schmoozing around? The same question about testing
> programs. Perhaps there just isn't any "batch" type processing?

I wrote a couple of modest Perl scripts to handle this kind of problem.
In my case, I wanted to stage downloads so as to not thrash my modem too
hard.

You might also equip everyone with their own quad Xeon running Linux,
Hercules and Linux/390.

Then defy them to get in each others' way;-)

I don't think the idea's too silly. They could mount their Hercules
filesystems from your mainframe using NFS, and their personal systems
would just be cloned. Keep the valuables on the mainframe, don't backup
the toys.

Source code management - cvs seems fairly popular.



--


Cheers
John.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb

Reply via email to