Hi vgersh99,
This is what happening when I try run the script as you suggested for the telnet part:
$ ./telnet.sh
Trying 3.32.xxx.xxx...
Connected to gpsappxxx.corporate.com.
Escape character is '^]'.
SunOS 5.8
This computer system may be accessed and used only by company employees
and other authorized personnel and only for legitimate business purposes
and in accordance with applicable company policies and guidelines
[
http://webp01.corporate.com/GENews/s...uidelines.htm].
The Company reserves the right to monitor access and use of Company
systems without any future warning, consistent with applicable law.
By accessing this computer system, you are consenting to monitoring by
the Company to ensure appropriate use and for other purposes. Unauthorized
access or inappropriate use may result in criminal penalties and/or
disciplinary action, up to and including termination.
login: xxxxxxxxxx
Password:xxxxxxxx
Last login: Fri Apr 28 10:26:53 from gpsapp***.corpo
Sun Microsystems Inc. SunOS 5.8 Generic Patch February 2004
$ ./telnet.sh: /app/siebel/swse/public/test: does not exist
Connection closed by foreign host.
----------------------------------
It is making conection with gpsappxx.corporate.com but not navigating to path /app/siebel/swse/public/test
But test directory exist in /app/siebel/swse/public .
Here is my telnet script:
USER=xxxxxxxx
PASSWD=xxxxxxxxx
cd /app/siebel/siebel7/siebsrvr
cd bin
(
sleep 1
echo "$USER"
sleep 1
echo "$PASSWD"
sleep 1
cd /app/siebel/swse/public/test
sleep 1
tar -xvf abc.tar
sleep 1
rm abc.tar
ls -ld
) | telnet gpsappxxx.corporate.ge.com
What can be done now dear ?. Is there any other way also to telnet from one machine to another using script ?
Thanks for your help
Aru