in reply to Is "die" the best way to be atomic?
One more thing - you might want to look at named pipes instead of system. That way, you can parse the input of the command, if you want.
One more thing - you might want to take a look at the $? variable, which is set by the system() function. Read up on system.
One more thing - if the scripts are their own entities, it is a good thing. However, I would recommend looking at refactoring the functionality into various modules and packages, to benefit from code re-use.
One more thing - it looks like you're doing some sort of batch processing. There are very good applications that have already solved this problem, plus provide features you'll never think of. You might want to google for "batch process open source" and see what comes out. If your employer has the capital, I'd recommend either Oracle Scheduler or Control-M, for proprietary products. Stay away from Tivoli and SQL Scheduler.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
|
|---|