-
Senior Member
registered user
Re: help with writing script

Originally Posted by
bob58
I need to wite a very small simple script and save it to desktop to run when i need to. It is an TELNET session that runs in the Konsole. At the prompt: bob@Gateway:~$ I type in "telnet", without quotes, then "open" and then "n7us.net" So it looks like this:
bob@Gateway:~$ telnet <enter>
telnet> open n7us.net <enter>
Then it connects to the ham radio site where I can sign in. I need to know how to make a script that would do this instead of me having to type it in each time. I need the commands to:
1. bring up the Konsole
2. have it put in the command "telnet"
3. have it put in the command open n7us.net
4. have it enter/carraige return
then i can take control from there.......any ideas???? bob
Try makeing a script called telconnect.sh (You can use a standard txt file)
Open it and put in
Then open up a consol type
su
chmod a+x /directory/telconnect.sh
then just type /directory/telconnect.sh (or ./telconnect.sh if your in the directory.)
*edited, fixed it
Similar Threads
-
By sunnmoon in forum General Support
Replies: 1
Last Post: 06-15-2005, 04:08 PM
-
By fmfischer in forum General Support
Replies: 1
Last Post: 04-14-2005, 11:07 AM
-
By irvine in forum The Lounge
Replies: 4
Last Post: 12-02-2004, 03:27 AM
-
By bikerman in forum General Support
Replies: 1
Last Post: 04-15-2004, 12:22 AM
-
By shadinio in forum Hardware & Booting
Replies: 1
Last Post: 03-25-2004, 09:09 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard
$59.99

Corsair RMe RM850e 850W 80 Plus Gold Fully Modular Low Noise Certified Refurb
$58.99

ASUS PRIME Z890-P WIFI Z890 LGA 1851 ATX motherboard, Intel® Core™ Ultra Series
$235.99

Gigabyte GA-B85M-D3H Motherboard
$54.99

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX
$59.99

Asus Prime B660M-A AC D4 Motherboard Intel LGA 1700 14th 13th 12th Gen DDR4
$79.99

Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)
$29.90

MSI B550M PRO-VDH Micro-ATX Motherboard - AMD AM4, Ryzen 5000/4000/3000 Ready, P
$71.49

Gigabyte Z370M D3H LGA1151 DDR4 Micro ATX Motherboard PCIe 3.0 Desktop Mainboard
$77.99

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield
$84.99