Thanks for your insights,Jenda. Please find my answers embedded within your questions.[ between >>>>>> ]
-----Original Message----- From: Jenda Krynicky [mailto:Jenda@;Krynicky.cz] Sent: Thursday, 24 October 2002 10:02 PM To: Rajendra Babu, Praveen; '[EMAIL PROTECTED]' Subject: Re: Job completion from queue under Windows '98 From: "Rajendra Babu, Praveen" <[EMAIL PROTECTED]> > * I submit jobs(basically proprietary language files) with a command, > let's say "resub". > * The "resub" command puts the jobs in a queue along with the user id. > of who has submitted. Basically, the jobs run in a remote machine(from > a pool of machines) which have higher memory capacity and speed. > * I see the status of the jobs with another command called "bqview", > which tells me whether the job is pending or running. When the job is > complete, a log file is put out into a specific directory in the form > of <job_name>.log Where is that specific directory? On the mechine that processed the job? Or is there a common directory somewhere? How do you know who submited the job? >>>>> It is a very specific network directory(H:\output\test) and any machine the job is processed it is placed in the same directory(H:\output\test). The "resub" command picks up the user id. while the user submits the job. >>>>> Is the log file created as soon as the job is started being processed and is beging modified during the processing or is it created after the job completes. I mean ... is it safe to assume that if there is that file the job has completed? >>>>> When the job starts up, it starts creating a log file simultaneously. It is very safe to assume as and when the whole the log file is complete then the process/job is complete too. Just now, I posted a reply "Re:Monitoring a file's status..." to the group. With this approach of checking the log file continuously, i.e. when the log file is completely updated by the process, I am sure that my job is complete in the remote machine. I BELIEVE THIS SOLUTION OF CHECKING LOG FILE WILL WORK OUT. >>>>>> You could run a script there that would test for new files in this directory, this script could run anywhere. Another option would be to "watch" that directory with Win32::ChangeNotify, but the computer where is this directory and where the script runs must be WinNT/2k/XP. In either case you > The remote machines,"resub" and "bqview" commands are no way under my > control. Well ... how do you know then that someone has submited something? If you could force them to submit the jobs using your script that would do something and then run resub. Otherwise the only chance you have to find out someone has submited anything is to run the bqview. >>>>> This is currently only for my working alone and to make things quicker for me[may be meddle more with Perl after doing for what I am paid!!!!] >>>>> Thanks again for your time and alternatives. Will need to re-visit your suggestions as and when I plan to move the script for other users. Thanks again, Praveen Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery IMPORTANT- (1) The contents of this email and its attachments are confidential and intended only for the individual or entity named above. Any unauthorised use of the contents is expressly prohibited. If you receive this email in error, please contact us, then delete the email. (2) ACNielsen collects personal information to provide and market our services. For more information about use, disclosure and access see our privacy policy at <www.acnielsen.com.au> or contact us on [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]