By:
sse
Rank:
Forum Addict
Topics:
73
From:
n/a
|
Added:
05/30/2005 - 05:32 PM
Working on 'external call', a feature similar to the traditional cgi call
this will give you the possibility to make links to other software to switch
lights, radios, door locks or whatever you need to interface with.
simple command line calls can be requested from any browser
|
By:
sse
Rank:
Forum Addict
Topics:
73
From:
n/a
|
Added:
05/31/2005 - 05:31 PM
Command lines are stored in config.txt
Examples
Command 1 = 'show directory','dir','dir','Text'
Command 2 = 'start notepad','notepad','notepad','None'
Command 3 = 'HTML output','html','type wwwroot\commands\sample.html','Html'
Command 4 = 'Text output','text','type wwwroot\commands\sample.html','Text'
Command 5 = 'Test Script','test/script','wwwroot\commands\script.cmd','Text'
Command 6 = 'hard to guess','haR62fin6nexeCute','echo you found me','Text'
Command Nr. = 'Name in List','URL Adress','Executable','Type'
Name in List: Enter the name for this command
URL Adress: URL of the command, no leading slash /
you can choose anything and obscure your commands
as in Command 6
Executable: Anything you can call from a command line. Use the test button to verify your command
Type: None returns a blank page, LogiSphere does not expect any feedback from the command
Text returns console output as text
use this for simple text output
Html returns console output as html code
use this for full fledged automated html pages
any command can be used as long as it completes within
an acceptable time frame.
---------------------------------------------------------------------------
1st Example:
http://localhost:8080/dir
shows current directory as text
http://localhost:8080/dir?c:\windows
shows windows directory as text
---------------------------------------------------------------------------
2nd Example:
http://localhost:8080/notepad
starts notepad, returns a blank page
---------------------------------------------------------------------------
3rd Example:
http://localhost:8080/html
shows the html code in sample.html as html
---------------------------------------------------------------------------
4th Example:
http://localhost:8080/text
shows the html code in sample.html as text
---------------------------------------------------------------------------
5th Example:
http://localhost:8080/test/script?p1 p2
or
http://localhost:8080/test/script?p1+p2
or
http://localhost:8080/test/script?p1%20p2
This calls script.cmd which shows the parameters (if any) and
toggles a switch using a file in your windows temp directory
|