Problems running script as service

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

From: Jim Y. (anonymous_at_discussions.microsoft.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 11:31:07 -0800

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

  • 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: Problems running script as service
    ... and then sleeps for 20 seconds, then looks for things to do, then sleeps ... > If I run the script in the foreground, ... > I'm using srvany with the following parameter: ...
    (microsoft.public.windows.server.scripting)
  • Re: on startup scripts
    ... Alas it sleeps then continues to load gnome ... Currently looking into placing a script inside the ... in seconds) to the startup time of gnome on your machine. ...
    (Ubuntu)
  • Re: utter newbie expect question
    ... exp_sends, but then the script would not run at all, but that helped ... me debug a bit. ... So now I have exp_sends, conservative mode off, and a load of sleeps ...
    (comp.lang.tcl)
  • Re: Accessing a URL
    ... become a lawyer... ... this script needs to read an RSS feed at the following extremely ... From what I can work out)my friend didn't know ... either) it's a PHP script that publishes the data as an RSS feed. ...
    (comp.lang.php)