diff --git a/editions/externalpipesdemo/tiddlers/system/HelloThere.tid b/editions/externalpipesdemo/tiddlers/system/HelloThere.tid index ab965bea5..6dd2b7a66 100644 --- a/editions/externalpipesdemo/tiddlers/system/HelloThere.tid +++ b/editions/externalpipesdemo/tiddlers/system/HelloThere.tid @@ -2,51 +2,42 @@ title: HelloThere ! External Pipe Demos -Status: {{JobStatus}} {{JobStatus!!message}} <$button message="tm-server-refresh">Refresh +Note that the browser polls the server every {{$:/config/SyncPollingInterval}}ms. You can trigger an instaneous poll: <$button message="tm-server-refresh">Refresh -<$button> -<$action-sendmessage $message="tm-execute-job" commands="--version" statusTitle="JobStatus"/> -Job! - +Status: {{JobStatus}} {{JobStatus!!message}} -<$button> -<$action-sendmessage $message="tm-execute-job" commands="--versionitis" statusTitle="JobStatus"/> -Illegal command - +!! Reverser -<$button> -<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="mimic" 3="[[Alice in Wonderland]]" 4="5" 5="5000" statusTitle="JobStatus"/> -Mimic - - -<$button> -<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="stats" 3="[[Alice in Wonderland]]" statusTitle="JobStatus"/> -Stats - - -<$button> -<$action-sendmessage $message="tm-execute-job" 0="--verbose" 1="--fetch" 2="raw-file" 3="http://api.open-notify.org/astros.json" statusTitle="JobStatus"/> -Fetch number of people in space - - -Output: - -{{http://api.open-notify.org/astros.json}} - -This demo requires the example task `reverser.js 8081` to be running in a separate command window. +This demo requires the example task `reverser.js 8081` to be running in a separate command window. You can edit the [[Sample Text]]. <$button> <$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="reverser" 3="[[Sample Text]]" statusTitle="JobStatus"/> Reverser -This demo requires the example task `./recaser.js 8081` or `./recase_erl.sh` to be running in a separate command window. +!! Recaser + +This demo requires the example task `./recaser.js 8081` or `./recase_erl.sh` to be running in a separate command window. You can edit the [[Sample Text]]. <$button> <$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="recaser" 3="[[Sample Text]]" statusTitle="JobStatus"/> Recaser +!! Mimic + +<$button> +<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="mimic" 3="[[Alice in Wonderland]]" 4="5" 5="5000" statusTitle="JobStatus"/> +Mimic + + +!! Stats + +<$button> +<$action-sendmessage $message="tm-execute-job" 1="--pipe" 2="stats" 3="[[Alice in Wonderland]]" statusTitle="JobStatus"/> +Stats + + !! Demo Output The output generated by the demos appears here: diff --git a/editions/tw5.com/tiddlers/webserver/Using remote commands.tid b/editions/tw5.com/tiddlers/webserver/Using remote commands.tid index 4e69d5cb5..4f049046f 100644 --- a/editions/tw5.com/tiddlers/webserver/Using remote commands.tid +++ b/editions/tw5.com/tiddlers/webserver/Using remote commands.tid @@ -49,3 +49,32 @@ This example fetches JSON data from `http://api.open-notify.org/astros.json` an Fetch number of people in space ``` + + +!! Remote Command Tests + +<$button message="tm-server-refresh">Refresh + +Status: {{JobStatus}} {{JobStatus!!message}} + +These tests don't produce any output. + +<$button> +<$action-sendmessage $message="tm-execute-job" commands="--version" statusTitle="JobStatus"/> +Job! + + +<$button> +<$action-sendmessage $message="tm-execute-job" commands="--versionitis" statusTitle="JobStatus"/> +Illegal command + + +<$button> +<$action-sendmessage $message="tm-execute-job" 0="--verbose" 1="--fetch" 2="raw-file" 3="http://api.open-notify.org/astros.json" statusTitle="JobStatus"/> +Fetch number of people in space + + +Output: + +{{http://api.open-notify.org/astros.json}} +