Tech Support Forum banner
Status
Not open for further replies.
1 - 4 of 4 Posts

·
Registered
Joined
·
5 Posts
Discussion Starter · #1 ·
hi guys, newbie here. :wave:

i'm trying to write a batch file to run on my XP pc so that i and fellow helpdesk operators can log on to a linux till abit quicker and easier.

so far i have been able to select a shop number and till number and enter the username using the following line...

telnet 10.%storenum1%.%storenum2%.%tillnumber% -l posuser

then it prompts for the password which i cannot for the life of me, get to work. :4-dontkno

can any one help me with this please??

thanks in advance. :pray:
 

·
Registered
Joined
·
471 Posts
Nope! You need the password. If you don't have it, you can't get on. You will have to contact whoever installed the POS terminal and get it from them.

I wouldn't use telnet to contact the POS unless the POS was within a secure network. Telnet sends everything "in the clear". There is no encryption. User names and login passwords are sent in the clear. So unless you are looking for your POS's to be compromised, DON'T USE TELNET.

Good luck. Without the password you are wasting your time.

Learn ssh. There are several free ssh clients that run very well on Linux. Even set up a very nice ftp/copy interface. ssh is secure. User logins and passwords are sent encrypted.

Why don't you dump the script that you have written so far?
 

·
Registered
Joined
·
5 Posts
Discussion Starter · #3 ·
i know the password to the tills but its just trying to get the command to put it in the password field that i'm stuck with. and they are all in a secure network which only we and our isp can see.

telnet is the only way we can connect to them and do what ever it is that we need to do. i think it's quite and old version of linux as out sales software wont run on anything newer and we're waiting for windows to be put on the tills.
 

·
Registered
Joined
·
471 Posts
Can you get the script to work if you put the password in the script? Like

PASSWORD=password
telnet ..... $PASSWORD

You might have to put the entire telnet and commands in a "here" document. And cat the telnet responses into telnet.

This is a snippet from a mass mail client I have:

cat << EOF
From: $RETURNADD
Subject: $SUBJECT
To: $REC
EOF

The "here" part is from EOF to EOF that is "cat"ed . (from here to here)!!!
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top