fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Automating remote interactive shell


From: Claudius Heine
Subject: [Fab-user] Automating remote interactive shell
Date: Mon, 13 Mar 2017 15:24:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

Hi everyone,

I am currently looking for something that automates some embedded Linux
development steps on a remote build server and fabric might just be the
right tool for this.

But there is one issue where I would like your thoughts on. One part of
developing embedded Linux systems is connecting to the system via a
serial terminal in order to input some commands and read their output.

AFAIK their is currently no real solution to automate interactive
programs in fabric. There is the 'open_shell' command, but that just
gives the control to the user.

I could imagine that this functionality could be implemented in fabric
using a context manager. This implementation should then wrap around
_run_command and _execute in order to provide a compatible experience.
And the context manager provides the necessary settings (shell command,
shell prompt, shell exit sequence, ... and how the exit codes of the
programs can queried, etc.). There should also be a much simpler API
similar to pexpect that is used by the _run_command and _execute wrapper
for these higher functionality.

Is such functionality on the roadmap or do you know about something that
already exists outside of fabric that solves these issues?

Thanks and have a nice day,
Claudius

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: address@hidden

           PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153
                             Keyserver: hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]