Re: Problems running script as service

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joseph Acosta (jacosta_at_san.rr.com)
Date: 02/26/04


Date: Wed, 25 Feb 2004 20:19:39 -0800

Maybe as an alternative to running this as a service, run it as a scheduled
task that occurs at whatever interval you need.

"Jim Y." <anonymous@discussions.microsoft.com> wrote in message
news:383D7CA9-F2F4-4AEF-8DAF-F563887FF238@microsoft.com...
> I have a script that I've set up to run as a service. It does some things
and then sleeps for 20 seconds, then looks for things to do, then sleeps
again.
>
> The service seems to start ok and does what it should do for a while.
Later, it stops working.
>
> If I run the script in the foreground, it runs forever.
>
> A friend of mine stopped by this morning and is having the same problem.
>
> I'm using srvany with the following parameter:
>
> Application: c:\winnt\system32\cscript.exe
> AppParameters: c:\gs\pstopdf.js (this is the javascript it is
running)
>
> Thank you.
> Jim



Relevant Pages

  • Problems running script as service
    ... It does some things and then sleeps for 20 seconds, then looks for things to do, then sleeps again. ... If I run the script in the foreground, ... A friend of mine stopped by this morning and is having the same problem. ... I'm using srvany with the following parameter: ...
    (microsoft.public.windows.server.scripting)
  • Re: right click script
    ... Just takes a quick glance at his script. ... Jim Cheshire ... >> Microsoft FrontPage MVP ... >>>would like NOT to have a message just a sound something I ...
    (microsoft.public.frontpage.programming)
  • Sys::Syslog writes to /dev/console instead of /dev/log
    ... sleeps for thirty seconds ... ... script slips into a state where it doesn't log anything to syslog. ... and here is strace output from a functioning case and then from a ... ioctl for d ...
    (comp.lang.perl.misc)
  • Re: Speeding up glob?
    ... Jim wrote: ... I have a very simple perl program that runs _very_ slowly. ... # get list of all files in the backup directory ... I just wrote a small script that creates 20k empty files and get the stat of the files and deletes them again. ...
    (comp.lang.perl.misc)
  • Re: Macro Message box doesnt display output?
    ... Thanks alot Jim, that's worked a treat. ... > Sub Button5_Click ... > 'WScript.echo "No connection available" ... > I have a script which is linked as a macro to a button on a worksheet. ...
    (microsoft.public.excel.programming)