Its quoted correctly, but you need to combine the first three lines into
one - the CRLFs added by the mail systems are tanking it.

--------------------------------------------------------------
Roger D. Seielstad - MTS MCSE MS-MVP
Sr. Systems Administrator
Inovis Inc.
 

> -----Original Message-----
> From: Kern, Tom [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 08, 2004 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [ActiveDir] Very OT
> 
> I get "unterminated string constant" at the end of the first 
> line of your script. I'm a perl guy, not vbs, so I don't 
> quite know where I'm supposed to terminate(quote) the line.
> 
> Thanks, sorry to be a pest.
> 
> -----Original Message-----
> From: Steve Patrick [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 04, 2004 3:58 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [ActiveDir] Very OT
> 
> 
> Here is a (cheap hack) way:
> 
> copy the text below to a script:
> 
> '----------------------------------------------------
> set events = 
> getobject("winmgmts:\\.").ExecNotificationQuery("select * from
> __instancedeletionevent within 2 where targetinstance isa 
> 'win32_process'
> and targetinstance.name = 'notepad.exe'")
> 
> Do
> set NTevent = events.nextevent
> If Err <> 0 then
> msgbox "it was not = to 0"
> else
> msgbox "Notepad was closed"
> exit do
> end if
> Loop
> 
> '----------------------------------------------------
> 
> Now start the script "monitor.vbs"
> Now start notepad.
> Wait for some random time.. close notepad.exe
> 
> 
> You should get a popup - change this to whatever action you 
> deem necessary.
> 
> For your situation you change  notepad.exe to  your app.
> Note that you can do this to a remote machine as well... 
> substitute the
> machine name like so:
> 
> ("winmgmts:\\mymachine")
> 
> 
> This is a polling process so there is some minor overhead.
> 
> -steve
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "Mulnick, Al" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 07, 2004 1:53 PM
> Subject: RE: [ActiveDir] Very OT
> 
> 
> > Haven't tried it, but this looks like it might be a way
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-
> us/wmisdk/wmi/
> > win32_perfrawdata_perfproc_thread.asp?frame=true
> >
> > You'd want to monitor thread state on a regular interval.
> >
> > Another option might be to use the scheduler or re-write 
> the code to alert
> > if it encounters an error.
> >
> > Al
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Kern, Tom
> > Sent: Monday, June 07, 2004 4:35 PM
> > To: ActiveDir (E-mail)
> > Subject: [ActiveDir] Very OT
> >
> > Hi, I have a devloper who wrote a vb exe(not a service) 
> that runs on start
> > up on an AD DC and stays in memory in the backround.
> > My question is, is there anyway to monitor if this process 
> has stopped?
> > Perhaps with a perl script. Since its not a service, I 
> don't really know
> how
> > to do this.
> > Also, it doesn't log anything to the event log.
> >
> > i couldn't find anything on my perl groups and you guys seem pretty
> > knowldgable on scripting so i just thought i'd take a shot 
> in the dark and
> > post here.
> > thanks and my apologies for the way OT.
> > List info   : http://www.activedir.org/mail_list.htm
> > List FAQ    : http://www.activedir.org/list_faq.htm
> > List archive: 
> http://www.mail-archive.com/activedir%40mail.activedir.org/
> > List info   : http://www.activedir.org/mail_list.htm
> > List FAQ    : http://www.activedir.org/list_faq.htm
> > List archive: 
> http://www.mail-archive.com/activedir%40mail.activedir.org/
> 
> List info   : http://www.activedir.org/mail_list.htm
> List FAQ    : http://www.activedir.org/list_faq.htm
> List archive: 
> http://www.mail-archive.com/activedir%40mail.activedir.org/
> List info   : http://www.activedir.org/mail_list.htm
> List FAQ    : http://www.activedir.org/list_faq.htm
> List archive: 
> http://www.mail-archive.com/activedir%40mail.activedir.org/
> 
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to