blackadder has asked for the wisdom of the Perl Monks concerning the following question:

Esteemed Monks, Greetings

I need your valuable advice please;

I have thousands and thousands of applications here ranging from standard office suite such as Word and Excel, to more obscure ones for trading and financial purposes. Most of these apps are scripted to facilitate the installation process on remote desktops.
for example I would have a file called \\.....\....\installs\office\office2003.go By clicking on this go scripted file from any desktop in the organisation, it will install the whole office suite silently without any further intervention. However not all application are fully silent, some do require manual intervention or some further configuration is required, or they have a user context assigned to them (which means that a users credentials must be supplied at some pint for a successful installation to complete).

What I would like to achive is this; Create a script that will pick a path to a go scripted application from a list (this is easy), then the script will run this application, i.e install this application by calling its name (this is also easy) then the script should be able to flag whether the process has completed successfully or not (hmmmm). Bearing in mind that some application take few seconds to complete and some could take few long hours, so concurrent process will be required (hmmmmmmmmm).

Am I correct in the belief that when an application runs, it occupies a memory space and as soon as this thread has completed then this memory space will be made available for next/other process? Ok, so if I place all the paths to my go scripted applications in a text file then pick 10 at a time from this list, run them all at the same time, monitor the memory spaces assigned to them and flag the ones that completed successfully from the ones that did not i.e are awaiting some intervention. I am assuming – and I could be making an ass of myself – that the OS will flag either 0 or 1 to indicate that a memory space available or a process completed successfully. Do you ‘holy people’ think this is possible and can be done? I know I will need a multi threading library here and some command that will return true or false depending on whether a process completed successfully or not. Can you help?

TIA

Blackadder
  • Comment on Application installation status or memory space monitoring