ftp binding error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ftp binding error
# 1  
Old 10-31-2011
ftp binding error

Hi,
I am rite now made my unix box machine as ftp server that is it acting both ways..Now I have sftp script but when I execute get the following error

Code:
ftp: bind: Address already in use
 $   From Secure4Access server process at 31-Oct-11  04:52...     
   Your session is inactive and will be terminated in one minute.     
  From Secure4Access server process at 31-Oct-11  04:53... 
  Your session has become inactive and is being terminated.    
tcsetattr: Interrupted system call                                    
 Killed by signal 1. tcsetattr: Interrupted system call          
  `sxs137' logout from `pngpcdb1' at 31-Oct-11  04:53, connect time: 0:31                                                                                                          Connection to pngpcdb1 closed.

Please guide me how to overcome from this...!!Smilie
# 2  
Old 10-31-2011
What is an FTP server "acting both ways"?
And you do realize that SFTP has nothing to do with FTP, except for name similarities?
And could you re-format that output in a way that's actually readable (you know, there's a preview function for posts, so that you could check, and correct, the formatting)?
# 3  
Old 10-31-2011
Hi ,

I was writing a bash script of ftp to transfer the files , rite now I am considering my local server as ftp server and through keygen -ssh I ahve generated the public & private keys , the private key I have kept in the folder named scripts where my all scripts resides and the public key in the .ssh folder in the home directory and inside that authorized_keys folder(permission 600) I have kept the public key ... below are the contents of the configuration file as well as main script file


Code:
  #############################################  #
Properties file for Ftp files
 #############################################   #
Remote url of the machine
 Remoteurl=pngrcdb1.weens.com

 #This is the source directoy from where the files will be picked up 
SrcFolders=/home/p2000/sxs137/ODS_Project/temp

 #This directory path should end with a slash(/) 
DestFolder=/home/p2000/sxs137/ODS_Project/test   

#the pattern of the files 
SourcefilePattern=*.txt 

  # your user id
 userid=sxsfd45

and below is the main file which reads from the above configuration



Code:
  #!/bin/sh
 . /home/p2000/sxs137/scripts/archieve1.config
 sftp -vin >> ftp.log <<EOF
 open $Remoteurl
 user $userid  
cd $DestFolder
 cd $SrcFolders
 put $SourcefilePattern
 bye EOF

Now the problem is that when I execute this script it shows the error ..!!
am rite now made my unix box machine as ftp server that is it acting both ways..Now I have sftp script but when I execute get the following error



Code:
ftp: bind: Address already in use  $   From Secure4Access server process at 31-Oct-11  04:52...        
 Your session is inactive and will be terminated in one minute.        
From Secure4Access server process at 31-Oct-11  04:53...    
Your session has become inactive and is being terminated.     
tcsetattr: Interrupted system call                                      
Killed by signal 1. tcsetattr: Interrupted system call             `
sxs137' logout from `pngpcdb1' at 31-Oct-11  04:53, connect time: 0:31    
                                                                                                      
Connection to pngpcdb1 closed.

Please guide me how to overcome from this...!!Smilie

Last edited by vbe; 10-31-2011 at 11:40 AM..
# 4  
Old 10-31-2011
And again you're mixing FTP and SFTP. Which one of the two is it?
And again you didn't post the output properly.

Until you post the output, and your script, properly (meaning: adding code tags, and the word halloween somewhere to prove you really read this, by yourself, and making sure that line breaks are where they should be), so that we can actually see if there's maybe an error in your script, I can't (and won't) help you.
# 5  
Old 10-31-2011
Quote:
Originally Posted by rahul125
Hi ,

I was writing a bash script of ftp to transfer the files , rite now I am considering my local server as ftp server and through keygen -ssh I ahve generated the public & private keys , the private key I have kept in the folder named scripts where my all scripts resides and the public key in the .ssh folder in the home directory and inside that authorized_keys folder(permission 600) I have kept the public key ... below are the contents of the configuration file as well as main script file


Code:
  #############################################  #
Properties file for Ftp files
 #############################################   #
Remote url of the machine
 Remoteurl=pngrcdb1.weens.com

 #This is the source directoy from where the files will be picked up 
SrcFolders=/home/p2000/sxs137/ODS_Project/temp

 #This directory path should end with a slash(/) 
DestFolder=/home/p2000/sxs137/ODS_Project/test   

#the pattern of the files 
SourcefilePattern=*.txt 

  # your user id
 userid=sxsfd45

and below is the main file which reads from the above configuration



Code:
  #!/bin/sh
 . /home/p2000/sxs137/scripts/archieve1.config
 sftp -vin >> ftp.log <<EOF
 open $Remoteurl
 user $userid  
cd $DestFolder
 cd $SrcFolders
 put $SourcefilePattern
 bye EOF

Now the problem is that when I execute this script it shows the error ..!!
am rite now made my unix box machine as ftp server that is it acting both ways..Now I have sftp script but when I execute get the following error



Code:
ftp: bind: Address already in use  $   From Secure4Access server process at 31-Oct-11  04:52...        
 Your session is inactive and will be terminated in one minute.        
From Secure4Access server process at 31-Oct-11  04:53...    
Your session has become inactive and is being terminated.     
tcsetattr: Interrupted system call                                      
Killed by signal 1. tcsetattr: Interrupted system call             `
sxs137' logout from `pngpcdb1' at 31-Oct-11  04:53, connect time: 0:31    
                                                                                                      
Connection to pngpcdb1 closed.

Please guide me how to overcome from this...!!Smilie
i guess, you might have a Secure4Access profile and use Secure4Access for authentication and user access privileges..therefore firstly you must try to check your account permission Secure4Access account properties or ask your super-user for this issue.
This User Gave Thanks to ygemici For This Post:
# 6  
Old 10-31-2011
Quote:
Originally Posted by ygemici
i guess, you might have a Secure4Access profile and use Secure4Access for authentication and user access privileges..therefore firstly you must try to check your account permission Secure4Access account properties or ask your super-user for this issue.

Hi,

Can you please specify what is secure4access..? and how could I check for Secure4Access account properties...any specific command ..??Smilie

---------- Post updated at 11:30 AM ---------- Previous update was at 10:22 AM ----------

Quote:
Originally Posted by rahul125
Hi,

Can you please specify what is secure4access..? and how could I check for Secure4Access account properties...any specific command ..??Smilie

Hi All,

Any idea about secure4access...??Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Binding command in wget.

I was recently reading a manual of wget and there was command as "binding-address" and I read about tcp/ip binding but i don't understand one thing is...what is the use of binding address in wget.. Can anyone help me with this. (6 Replies)
Discussion started by: jFreak619
6 Replies

2. Red Hat

Lazy binding related

Hi, I'm building an application that would connect to either one of the 2 databases in production. I want to keep the source code common for both environments. The problem lies in the fact that in the target servers there will be only one of the 2 databases installed, hence the application... (2 Replies)
Discussion started by: ishdeepanand
2 Replies

3. IP Networking

Binding the same port number on different interfaces

Hi, We can use the same port number for two applications based on protocols.(i.e one application is based on TCP and the other application based on UDP). But i don't know about interfaces, can anyone one help........ 1) Can we use same port number for different... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies

4. IP Networking

Binding the port number.

Hi all, Application A is using an port number 100 and is binded to an interface 1. Application B is using an port number 100 and is binded to an interface 2. can we bind the two applications on same port number based on interfaces. what i want to know is two... (3 Replies)
Discussion started by: vijaypdp2006
3 Replies

5. IP Networking

Binding the IP address

hi all, i have an udp based application that doesn't bind to any particular address. -->while sneding the packets, i have some doubts.... 1) can the packet be transmitted with an source ip address as 0.0.0.0 2) if we select an interface based on destination ip address,... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies

6. AIX

TCP/IP socket binding problem

I have what appears to be a unique socket problem, although admittedly my tcp/ip programming experience is relatively limited. I have a AIX server process using TCP/IP berkely sockets, and a Windows (C#) process. The windows process takes input from a user and sends a message to the Unix... (1 Reply)
Discussion started by: adiaconou
1 Replies

7. Shell Programming and Scripting

Column wide file binding

What is the best way to bind files in column wide? Looks a simple, but I don't know the most economic way. I tried to merge, and cat function, but not success!! Ex.) file 1 1 2 3 2 3 4 file 2 3 4 5 4 5 6 file 3 2 3 4 1 2 7 I would like to see the result below file 4 1 2 3 3... (2 Replies)
Discussion started by: Jae
2 Replies

8. IP Networking

binding problems

i had a problem when using the bind function.. that is when i create a socket and bind it with a address(usually some file name)... when i run it once it goes on fine but the second time it tells a error since there is already a socket file in that name created by my previous run... but when i... (2 Replies)
Discussion started by: damn_bkb
2 Replies

9. HP-UX

CPU Binding in HP UX (psrset)

Hi All, I would like to know the behaviour of psrset in the following model. I have a 4 CPU machine on which i have a couple of databases running and a web application running. supposing i have processers 0 1 2 and 3 I bind processor 0 and 1 to the web application. This ensures that... (3 Replies)
Discussion started by: nileshkarania
3 Replies

10. Solaris

key binding in the terminal

Hello all I would like to make shift+insert a shortcut for "paste from clipboard". how do I do it? where can I find the format to set this key binding, or others? thanks Ori (4 Replies)
Discussion started by: orid
4 Replies
Login or Register to Ask a Question