Feature request:Wait
- Dominant language
- Perl
- Stars
- 3.9k
- Forks
- 213
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Apologies if there is already a way to do this but I can't find it.
I am trying to trigger a telnet or ssh script from Shortcuts and A-shell. Its to change router settings. I can trigger telnet and get it to connect. Where I struggle is the subsequent adding of data into the telnet. I can send the telnet command and then other commands from the same Shortcut entry but then they are entered immediatly. A-shell doesn't seem to recognise sleep or wait commands. Any chance of getting a sleep command added?
This is the terminal script that works (on osx) and I am trying to replicate in a-shell
#!/bin/bash
{
sleep 0.5
echo "username"
sleep 0.1
echo "password"
sleep 0.1
echo "config"
sleep 0.2
echo "int ge3"
sleep 0.2
echo "power inline never"
sleep 0.1
echo "exit"
} | telnet 192.168.1.240
Cheers all,
dazey
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.