ftp and telnet in the same script ?? Urgent Help !!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ftp and telnet in the same script ?? Urgent Help !!
# 8  
Old 04-28-2006
I can see that as it connect to gpsappxxx.corporate.com

it again do ./telnet.sh out there..... which outputs :

$ ./telnet.sh: /app/siebel/swse/public/test: does not exist

It is not doing 'tar -xvf abc.tar' and then 'rm abc.tar'

What can be the issue... why isn't it executing those cmds.


Strange.... is there exist any problem with again.


Aru
# 9  
Old 04-28-2006
make sure that whatever directory you're trying to navigate to using the script DOES exist and has the proper permissions.

try to do the same things manually from the command line that you're doing within the script.
# 10  
Old 04-28-2006
Try this:

(
sleep 1
echo "$USER"
sleep 1
echo "$PASSWD"
sleep 1
print cd /app/siebel/swse/public/test
sleep 1
print tar -xvf abc.tar
sleep 1
print rm abc.tar
print ls -ld
) | telnet gpsappxxx.corporate.ge.com


Cheers..
# 11  
Old 05-01-2006
it wonders me that, even after modification... it is not letting me to go inside telnet loop.

(
...
...
...
) | telnet gpsappXXX.corporate....


It is not connecting to gpsappXXX.

Can some bdy suggest me different telnet script?.

Also I have checked the existing path to be correct. I am able to connect to gpsappXX from machine 1 when I go through each and every command manually....... but, not thriugh script????. Where is the problem?.

I have to get some telnet script..... plz help. May be your suggestion helps me . Plz suggest any other sol if possible.

Thnx..
Aru
# 12  
Old 05-01-2006
Quote:
Originally Posted by aarora_98
it wonders me that, even after modification... it is not letting me to go inside telnet loop.

(
...
...
...
) | telnet gpsappXXX.corporate....


It is not connecting to gpsappXXX.

Can some bdy suggest me different telnet script?.

Also I have checked the existing path to be correct. I am able to connect to gpsappXX from machine 1 when I go through each and every command manually....... but, not thriugh script????. Where is the problem?.

I have to get some telnet script..... plz help. May be your suggestion helps me . Plz suggest any other sol if possible.

Thnx..
Aru
Any specific errors..
I am able to do on my servers what you are tryin to do...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies

2. Shell Programming and Scripting

Urgent Telnet Script

hi all, I want to telnet to a port. aand then run a command called 'show threads' once i'm connected to the telnet prompt. then the respond of this 'show threads' i want to store it in a file on a local system. can someone please help me out here? this needs to be scripted, shell script. ... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. Shell Programming and Scripting

urgent help needed in telnet issue

Hi, Whenever i am trying to telnet to server i am getting frequent error Authorized Login: prtsrc's Password: /dev/pts/171: Password read timed out -- possible noise on port when i am rerunning the same it is working fine thanks, sam (2 Replies)
Discussion started by: sam99
2 Replies

4. UNIX for Advanced & Expert Users

Script should flow after ftp --Urgent

Hi everyone, The script actually does the ftp and gets the file to the local system. I want to do some manipulations for that file , But after doing ftp , script is not proceding and just a prompt is displayed . .... ftp code here...... .................... ............... echo "FTP... (4 Replies)
Discussion started by: kaaakrishna
4 Replies

5. UNIX for Advanced & Expert Users

FTP script urgent

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

6. Filesystems, Disks and Memory

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

7. UNIX Desktop Questions & Answers

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

8. UNIX for Dummies Questions & Answers

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

9. Linux

ftp telnet enable

hi , i have jsut installed linux 9.0 , but i can not ftp or telnet to the system . i have installed the ftp and the telnet server during installation . i have also configured the files to enable the ftp and telnet , the ftp and the telnet daemons are running , but when i do ftp : ftp... (1 Reply)
Discussion started by: ppass
1 Replies

10. IP Networking

FTP or Telnet

Dumb question I'm sure but how on earth do I transfer files from a sco unix machine to my windows 2000 machine. I'm typing commands on my Win2000 machine. All I can seem to do is move files around on the unix system? (8 Replies)
Discussion started by: Timbash
8 Replies
Login or Register to Ask a Question