diff options
author | Philip Hands <phil@hands.com> | 2017-03-03 13:34:45 +0100 |
---|---|---|
committer | Philip Hands <phil@hands.com> | 2017-03-07 23:50:21 +0100 |
commit | faa4c759b90a365e532321f18979812f9b6442eb (patch) | |
tree | 4007f217eade8c6280ed5d5213906d160d1f0156 /userContent/presentations/2016-11-30-Profitbricks | |
parent | 48327348c7ee0cceb1e8b5ddb082805651ee0fe0 (diff) | |
download | jenkins.debian.net-faa4c759b90a365e532321f18979812f9b6442eb.tar.xz |
lvc: reinstate VMcommand's ability to run commands and get results
This modifies the inittab to run a very simple loop on d-i's ttyS0
that reads commands from stdin, runs them and tops and tails the
output with various control characters to make it easier to see
when we have a result.
It outputs a BEL (Ctrl-G, \a, \007) at the start, then an STX (\002)
before running the command, and an ETX (\003) afterwards, to bracket
STDOUT. After the ETX comes the command's return code, in decimal,
then a US (\037), then comes the STDERR, and finally a NUL (\000)
That lets us send an 'exit' and look for a BEL then issue
a command and find the values required to populate the @returncode,
@stdout and @stderr values.
Diffstat (limited to 'userContent/presentations/2016-11-30-Profitbricks')
0 files changed, 0 insertions, 0 deletions