Re: Checking Webdna is running
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69275
interpreted = N
texte = If your servers are running Windows 2k3 or XP, then you can use the DOS SC command. Security between the 2 servers would need to be connected though.http://www.ss64.com/nt/sc.htmlSyntax SC [\\server] [command] [service_name] [Options]Key server : The machine where the service is running service_name : The KeyName of the service, this is often but not always the same as the DisplayName shown in Control Panel, Services. You can get the KeyName by running: SC GetKeyName
commands: query [qryOpt] Show status queryEx [qryOpt] Show extended info - pid, flags GetDisplayName Show the DisplayName GetKeyName Show the ServiceKeyName EnumDepend Show Dependencies qc Show config - dependencies, full path etc start START a service. stop STOP a service pause PAUSE a service. continue CONTINUE a service. create Create a service. (add it to the registry) config permanently change the service configuration delete Delete a service (from the registry) control Send a control to a service interrogate Send an INTERROGATE control request to a service Qdescription Query the description of a service description Change the description of a service Qfailure Query the actions taken by a service upon failure failure Change the actions taken by a service upon failure sdShow Display a service's security descriptor using SDDL SdSet Sets a service's security descriptor using SDDL qryOpt: type= driver|service|all Query specific types of service state= active|inactive|all Query services in a particular state only bufsize= bytes ri= resume_index_number (default=0) group= groupname Query services in a particular group Misc commands that don't require a service name: SC QueryLock Query the LockStatus for the ServiceManager Database. this will show if a service request is running SC Lock Lock the Service Database SC BOOT Values are {ok | bad} Indicates whether to save the last restart configuration as the `last-known-good` restart configuration Options The CREATE and CONFIG commands allow additional options to be set see the build-in help: 'SC create' and 'SC config'Note the qryOpt options above are case sensitive - they must be entered in lower case, also the position of spaces and = must be exactly as shown.The SC command duplicates some aspects of the NET command but adds the ability to create a service.SC query will display if a service is running, giving output like this: SERVICE_NAME : messenger TYPE : 20 WIN32_SHARE_PROCESS STATE : 4 RUNNING (STOPPABLE,NOT_PAUSABLE,ACCEPTS_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0To retrieve specific information from SC's output, pipe into FIND or FindStre.g. SC query messenger | FIND "STATE" SC QUERY state= all |FINDSTR "DISPLAY_NAME STATE"In the statement above the FIND command will set the ERRORLEVEL as followsERRORLEVEL 0 = RunningERRORLEVEL 1 = Stopped or PausedThe NET START command can be used in a similar way to check if a service is running: NET START | FIND "Service name" > nul IF errorlevel 1 GOTO :s_not_runningThe service control manager will normally wait up to 30 seconds to allow a service to start - you can modify this time (30,000 milliseconds) in the registryHKLM\SYSTEM\CurrentControlSet\ControlServicesPipeTimeout (REG_DWORD)Some options only take effect at the point when the service is started e.g. the SC config command allows the executable of a service to be changed. When the service next starts up it will run the new executable. Config changes requires the current user to have "permission to configure the service".Examples: SC GetKeyName "task scheduler" SC GetDisplayName schedule SC start schedule SC QUERY schedule SC QUERY type= driver SC QUERY state= all |findstr "DISPLAY_NAME STATE" >svc_installed.txt SC \\myServer CONFIG myService obj= LocalSystem password= mypassword SC CONFIG MyService binPath=c:\myprogram.exe obj=".\LocalSystem" password="" Watch out for extra spaces:SC QUERY state= all WorksSC QUERY sTate =all Fails!----- Original Message ----- From: "paul" Sent: Tuesday, September 11, 2007 9:53 AMSubject: Re: Checking Webdna is running>I have a page on a remote server that loads a simple graphic that shows the> server is connected to the net>> I need to have a way of actually getting a result from a webdna page as > well>> The page refreshes ever five mins and ideally I need it to display the> number of products>>> How would I do this?>> The page on the remote server is a normal html page and this server doesnt> have websdna>> Thanks> Paul>>> -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
If your servers are running Windows 2k3 or XP, then you can use the DOS SC command. Security between the 2 servers would need to be connected though.http://www.ss64.com/nt/sc.htmlSyntax SC [\\server] [command] [service_name] [Options]Key server : The machine where the service is running service_name : The KeyName of the service, this is often but not always the same as the DisplayName shown in Control Panel, Services. You can get the KeyName by running: SC GetKeyName commands: query [qryOpt] Show status queryEx [qryOpt] Show extended info - pid, flags GetDisplayName Show the DisplayName GetKeyName Show the ServiceKeyName EnumDepend Show Dependencies qc Show config - dependencies, full path etc start START a service. stop STOP a service pause PAUSE a service. continue CONTINUE a service. create Create a service. (add it to the registry) config permanently change the service configuration delete Delete a service (from the registry) control Send a control to a service interrogate Send an INTERROGATE control request to a service Qdescription Query the description of a service description Change the description of a service Qfailure Query the actions taken by a service upon failure failure Change the actions taken by a service upon failure sdShow Display a service's security descriptor using SDDL SdSet Sets a service's security descriptor using SDDL qryOpt: type= driver|service|all Query specific types of service state= active|inactive|all Query services in a particular state only bufsize= bytes ri= resume_index_number (default=0) group= groupname Query services in a particular group Misc commands that don't require a service name: SC QueryLock Query the LockStatus for the ServiceManager Database. this will show if a service request is running SC Lock Lock the Service Database SC BOOT Values are {ok | bad} Indicates whether to save the last restart configuration as the `last-known-good` restart configuration Options The CREATE and CONFIG commands allow additional options to be set see the build-in help: 'SC create' and 'SC config'Note the qryOpt options above are case sensitive - they must be entered in lower case, also the position of spaces and = must be exactly as shown.The SC command duplicates some aspects of the NET command but adds the ability to create a service.SC query will display if a service is running, giving output like this: SERVICE_NAME : messenger TYPE : 20 WIN32_SHARE_PROCESS STATE : 4 RUNNING (STOPPABLE,NOT_PAUSABLE,ACCEPTS_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0To retrieve specific information from SC's output, pipe into FIND or FindStre.g. SC query messenger | FIND "STATE" SC QUERY state= all |FINDSTR "DISPLAY_NAME STATE"In the statement above the FIND command will set the ERRORLEVEL as followsERRORLEVEL 0 = RunningERRORLEVEL 1 = Stopped or PausedThe NET START command can be used in a similar way to check if a service is running: NET START | FIND "Service name" > nul IF errorlevel 1 GOTO :s_not_runningThe service control manager will normally wait up to 30 seconds to allow a service to start - you can modify this time (30,000 milliseconds) in the registryHKLM\SYSTEM\CurrentControlSet\ControlServicesPipeTimeout (REG_DWORD)Some options only take effect at the point when the service is started e.g. the SC config command allows the executable of a service to be changed. When the service next starts up it will run the new executable. Config changes requires the current user to have "permission to configure the service".Examples: SC GetKeyName "task scheduler" SC GetDisplayName schedule SC start schedule SC QUERY schedule SC QUERY type= driver SC QUERY state= all |findstr "DISPLAY_NAME STATE" >svc_installed.txt SC \\myServer CONFIG myService obj= LocalSystem password= mypassword SC CONFIG MyService binPath=c:\myprogram.exe obj=".\LocalSystem" password="" Watch out for extra spaces:SC QUERY state= all WorksSC QUERY sTate =all Fails!----- Original Message ----- From: "paul" Sent: Tuesday, September 11, 2007 9:53 AMSubject: Re: Checking Webdna is running>I have a page on a remote server that loads a simple graphic that shows the> server is connected to the net>> I need to have a way of actually getting a result from a webdna page as > well>> The page refreshes ever five mins and ideally I need it to display the> number of products>>> How would I do this?>> The page on the remote server is a normal html page and this server doesnt> have websdna>> Thanks> Paul>>> -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Robie Blair"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] Bug reporting (2009)
Cache problem (2002)
Fun with [middle] (2002)
WebCatalog Features (1997)
How can I Add several Items into the cart at once? (1997)
Off-topic: Cheap hosting (but not webdna) ... (2002)
taxRate is fine but taxTotal isn't (1997)
[WebDNA] Server 2012 R2 (2014)
Possible Bug in 2.0b15.acgi (1997)
WCS Newbie question (1997)
Does anyone have a TCPconnect that does multiple sends... (2000)
Still having install problems (2000)
Shell traceroute (2001)
Help name our technology! I found it (1997)
Using [random] (1999)
Testing the WebCat Email List Members (2000)
MacAuthorize Problem (1998)
Extracting undeliverable email addresses (2003)
SSL and reg web* (1997)
Order not created error (1997)