you do not enter the word USER and PASS. only enter the actual user name and password.
If you want to have automatic login, create a .netrc file in the root directory /.
There is a man page for netrc to give you the format.
Create the file with 0400 permission and owner root
OK, I have tried this a couple of different ways - creating the .netrc file with the machine information for the other machine on each of my two servers. I have done the chown command to change ownership to root, and I've done the chmod command to set permissions to 0400. When I run the "telnet (machine ip) 21" command it says that I'm connecting to the other machine - the ip and machine names are correct, and at the end of the line it says "ready", however whenever I try to type anything in it tells me - "530 Please login with USER and PASS." Same message I get in either direction with the two servers. If there are no other steps I need to do, or check on, I guess I'll pursue the connection of a CD/DVD writer to the old server and see if I can backup to that. Again, I appreciate all the help!
OK, I think I have found a possible reason why the ftp connection won't work. My older system, when being contacted via ftp on the command line, identifies itself as "scounix.SJCAT.COM". The SJCAT.COM domain was an ancient Windows Active Directory domain that we had many years ago. Our current domain is a different name, so where does the TCP/IP settings get changed in the SCO OpenServer 5.0.6 machine? I'm thinking that my current DNS server, and both the old and new SCO systems should have accurate network identification information, right? I just need to know where to go to make all of the necessary changes. Please advise - thanks.
You can use a node name or an ip address on the command line:
or
If you use a node name the system needs to resolve it to an ip address and the first place it looks is /etc/hosts. If the name is in there it will not need or try to go to DNS server(s).
Another thing to consider is whether the two systems ip address are on the same network? If not, then the system will try to contact its gateway to get a route out of the LAN.
Can you ping the other system?? (try it both ways) e.g.
If ping doesn't work then you have no chance with ftp or telnet.
To avoid confusion on whether names are being resolved properly or not just use an ip address for your target on your command line.
I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output.
Is it possible to transfer files from Windows server to unix server through any shell script?
If so can you please help me with the details.
Thanks in... (8 Replies)
Hi,
I'm new to shell script..I have one requriement like -
In one server have more than one files,I want to ftp those files to some otehr server..
Ex : test1.pdf
test2.pdf
Please suggest me how to do (3 Replies)
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Validating the size of file transferred from ftp server to the local system.
File type: Text file/Flat file
Source System: Windows / Unix Systems
Target System is always: Unix
Mode of Transfer : ASCII
We have generic ftp shell script that transfers the files from different ftp servers. ... (2 Replies)
Hi ,
We are facing a weird problem in our project. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->. Issue here is.. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the... (2 Replies)
Hi,
I want to run a process on server a, pulling files from server b and pushing it to server c.
Can i do that without dropping the files on server a?
Thanks,
Samit (2 Replies)
Hi Experts...
Greetings for the day..!
I just want to FTP the files to mainframe system..
my code is not working..and also i need to put the files in a particular directory in a specific naming format...
ftp -i -n ${HOST_NAME} << END_FTP
user ${USER_NAME} ${PASSWORD}
put ${FILE_NAME}... (3 Replies)
I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details:
FTP Client has Sun SSH.
FTP Server has F-Secure.
I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error
scp:... (2 Replies)
Hi,
I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)