HelloI have this bashscriptremote_server="server port"my_user_id="user"my_password="password1"turn() {
my_command="ts turn $1 $2"
expect << EOF
# Assume $remote_server, $my_user_id, $my_password, and $my_command were read in earlier
# in the script.
# Open a telnet session to a remote server, and wait for a username prompt.
spawn telnet $remote_server
expect ">> "
# Send the username, and then wait for a password prompt.
send "user $my_user_id\r"
expect ">> "
# Send the password, and then wait for a shell prompt.
send "pass $my_password\r"
expect ">> "
# Send the prebuilt command, and then wait for another shell prompt.
send "$my_command\r"
# Exit the telnet session, and wait for a special end-of-file character.
send "quit\r"
expect
EOF
}turn tv onexitI like to do the same with tasker ( non rooted device ) and make a shortcut to the desktopThere is a app for this but it's not perfect as you have login every time and there is no widget or why to create a shortcut
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/GviqjQhAwps/unsubscribe.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Hi again,I'm trying to replicate my script in the plugin, not sure what I should do.
When I create the first expect it doesn't show up in the list, maybe a bug don't know.BRDaniel
Hi David,I bought your App and now I tried to do some Telnet ...I only want to send a string to a telnet host, the host didn´t need a Login (it is only local)In the Target I put the IP of the local telnet server.Port: 4224timeout: 5Send KOBELKA.event.mobil=testNothing reaches the host, what did I wrong ?