Looking for a simple example for networkcommand.exe
Posted: Wed Apr 06, 2022 5:22 pm
Hi. Here's to hoping someone can provide a simple command example:
I have a need to use the networkcommand.exe CLI (via dos) to set 2 local variables, then run a task.
Here are some known basics (for the purpose of the example):
Robotask Name: example-login
Variable1={USERNAME}
Variable2={PASSWORD}
ip of host listener: 192.168.1.10
port: 5500
Listener set up: (there are 3)
Listener 1:
Network->Listener
(Starts with) Wait for String = "APPUSER=" -----> "Save Received string as Local User Variable --> {USERNAME}"
Listener 2:
Network->Listener
(Starts with) Wait for String = "PASSWORD=" -----> "Save Received string as Local User Variable --> {PASSWORD}"
Listener 3:
Network->Listener
(Exact String): example-login ---> Everything else blank. This will be to start the task if it sees "example-login" as the string.
So.. on the machine I want to use networkcommand.exe on, I'm issuing the following command (from the dos prompt):
networkcommand.exe srv=192.168.1.10 cmd="APPUSER=myuser" port=5500
I get the following response:
Receive data: Timeout is over or unexpected connection closing
What I'm trying to achieve is:
1. Set Username
2. Set Password
3. Run the task
Where am I going wrong? Any help would be very much appreciated. The console of the "server" machine where the task will be run sees the connection coming in.
I have a need to use the networkcommand.exe CLI (via dos) to set 2 local variables, then run a task.
Here are some known basics (for the purpose of the example):
Robotask Name: example-login
Variable1={USERNAME}
Variable2={PASSWORD}
ip of host listener: 192.168.1.10
port: 5500
Listener set up: (there are 3)
Listener 1:
Network->Listener
(Starts with) Wait for String = "APPUSER=" -----> "Save Received string as Local User Variable --> {USERNAME}"
Listener 2:
Network->Listener
(Starts with) Wait for String = "PASSWORD=" -----> "Save Received string as Local User Variable --> {PASSWORD}"
Listener 3:
Network->Listener
(Exact String): example-login ---> Everything else blank. This will be to start the task if it sees "example-login" as the string.
So.. on the machine I want to use networkcommand.exe on, I'm issuing the following command (from the dos prompt):
networkcommand.exe srv=192.168.1.10 cmd="APPUSER=myuser" port=5500
I get the following response:
Receive data: Timeout is over or unexpected connection closing
What I'm trying to achieve is:
1. Set Username
2. Set Password
3. Run the task
Where am I going wrong? Any help would be very much appreciated. The console of the "server" machine where the task will be run sees the connection coming in.