-
scripting
Hello 'USER UNKNOWN'.....I will try that script....unfortunatly the others i have tried didnt do as expected. I do not need the script to run totally automated...I dont mind logging in, that no problem. I just dont understand why none of the suggestions work! It seems simple enuff to run a script like this. Maybe its me.Hahahaha OK well anyway I will try this latest script when i get home and post back tomorrow....bob
-
Bob
The script I wrote does work, but the server you were trying to login with either doesn't exist or is on a private server, so I left the n7us.net off to get the resulting telnet prompt. All you would have to do is type in the telnet server name you wanted to log into, and the script does work once you've made it an executable and created a shortcut linking to the executable script.
Edit:
Whoops, I copied and pasted the code I posted, and it lacked a space before the -e, so you'll need to insert it or I can repost the modification to this thread if you like. :)
Edit #2:
I typed open n7us.net in the telnet prompt window, and it responded with a call: prompt. If you want to insert the n7us.net server into the script, that will work as well.
Durand
-
help with script
Hi Durand.....OK I will try again. Repost the modified script if you have time and I will try it again.
-
I actually tested both my scripts with an ssh connection and they did work, don't know why they didn't for you.
-
Bob,
Not a problem, here it is.
Code:
#!/bin/sh
if [ -e /etc/network/ifstate ]
then konsole -e telnet n7us.net
else exit
exit
fi
I tested this twice already just so you know it works. One possible problem that comes to mind when it didn't work for you is that maybe you're on dialup? Don't forget to chmod a+x this script and make a link on your desktop to the script.
HTH,
Durand
P.S. On a side note, I have the telnet-ssl program, not the standard telnet program, so if that makes a difference, let me know.