Skip to content

Programmatic shell access #4967

@immesys

Description

@immesys

It would be useful to be able to execute shell commands programmatically. For example, my app might want to change radio channel, add an IP address, start RPL etc. There are many such tasks that are trivial to do via the shell, but often quite complex to do via the underlying commands.

With a bit of care to concurrent access, I believe this can be done by exporting the handle_input_line symbol that is currently static in the shell handling code. Before I do the work to make a pull request though, I wanted to ask how other people have been solving this problem. How have people been making nodes that "come up" configured automatically? Perhaps I am going about this the complete wrong way?

Metadata

Metadata

Assignees

Labels

State: staleState: The issue / PR has no activity for >185 daysType: questionThe issue poses a question regarding usage of RIOT

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions