Reference
prompt
On this page
Initiate an interactive session with the Runtime API.
Description Jump to heading
Using prompt
, you can begin an interactive session wherein you can enter commands without needing to reconnect to the API each time.
Examples Jump to heading
-
Connect to the Runtime API socket:
nixsudo socat stdio tcp4-connect:127.0.0.1:9999nixsudo socat stdio tcp4-connect:127.0.0.1:9999 -
Start an interactive session:
nixpromptnixprompt
Then you can send other Runtime API commands.
Available since
- HAProxy 2.8
- HAProxy Enterprise 2.8r1
As of version 2.8r1
, you can provide an additional argument timed
to the prompt
command which will show the process’ uptime on the prompt.
nix
sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
prompt timed
nix
prompt timed
The prompt will then show with the process’ uptime.
outputtext
[0:00:15:55]>
outputtext
[0:00:15:55]>
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?