HowestAILab / Utils.MSSHCommands

Small tool to send a ssh command to multiple devices at the same time.
MIT License
0 stars 0 forks source link

Adding variables #2

Open Eslih opened 6 years ago

Eslih commented 6 years ago

Would be cool to have an advanced panel that allows the use of variables.

Example 1:

python3 server-producer.py {$port)

In this case port is an integer that starts with 10000, steps of 1000, until port 19000 is reached. Auto send command as much as needed.

Example 2:

sudo useradd -p $(openssl passwd -1 {$password) $username
usermod -aG sudo {$username}

Username and password are both strings, available in a list. Auto send command as much as needed.

The idea is that this feature can replace some simple scripts / somewhat more complex oneliners.

Didjeeh commented 6 years ago

This is more than just 'variables'. I have an idea how to implement this, but it won't be right away.