Automated FTP to variable directory with error check


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Automated FTP to variable directory with error check
# 1  
Old 04-07-2006
Data Automated FTP to variable directory with error check

Hi,

automated FTP that have error check and each product FTP will used the same userid/password to post(transfer) the file(s) from their <product> directory at UNIX to their <product> folder at Windows.

such senarios as follows:

NOTE:
=======
** Variable **
* The <product> is variable e.g ELA, KLA, GLC, VIN
* <filename> is composed with <Product>_<yyyymmdd>
* both the UNIX and Windows are using the same path name based on the <product>

** Fixed **
* The remote server to be transfer which ip address,
* The UserID and the Password, and
* The UNIX Directory for the failure-to-transfer

1. FTP the varible <filename> (e.g ELA_20060407.dat)
from the UNIX server with designated path (eg. ELA)
to a given Window server (ip address e.g 196.166.100.100)
using the userid/password (e.g producer/pass1234)
and transfer to Windows with the designated path (e.g ELA)

2. ALSO in the event of failure to transfer due to any reason, there should be transfer the local predefined UNIX directory (e.g FTPError) for traced or reference.

* Can I do it in pure C or UNIX Script?
UNIX is Sun OS, Windows is Windows 2000.

I am lost. Please kindly advise. Greatly Appreciated.
Smilie Smilie
# 2  
Old 04-07-2006
If you really want multi-vendor guarenteed delivery, you should look at products like Tumbleweed's Valicert . There are others out there, but there are times where using a COTs product is prefereable to full-blown development.

Cheers,

Keith
# 3  
Old 04-10-2006
Data But my boss don't want to spend

Thanks.

But my boss do not want to spend and only want programming to make it work. Anyway better way to do so.

Really appreciated.

Anyway. I am cracking my head to try and test along.
# 4  
Old 04-10-2006
Did you searcht the FAQ yet? Perderabo has an "automating FTP" thread that will do what you need? IMO.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automated FTP

Hello,I just know the basics of scripting & I need a script to automate ftp since I use it quite often. I use ftp to transfer different kind of files and everytime the source & the destination directories are different for transferring files, so can anyone help me out on this urgently.. (2 Replies)
Discussion started by: mohit_02mar
2 Replies

2. Shell Programming and Scripting

Problem with ftp- how to check if the remote directory exists.?

I am trying to initiate a ftp session from my shell script in the following way. In my script, as per my requirements i am writing the required ftp commands to a file and then I am using this file to carry out the ftp process. for example temp.txt will contain cd /home/user/mydir append... (2 Replies)
Discussion started by: anijan
2 Replies

3. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

4. Shell Programming and Scripting

Automated FTP

I want to do Automated FTP from linux client to LINUX server using a shell script after every one hour. And copies last most updated file from Linux server. OR You can say that whenever files get modified on LINUX server so it also copies on my LINUX client. Linux SERVER path=... (4 Replies)
Discussion started by: wakhan
4 Replies

5. Shell Programming and Scripting

Automated FTP from Unix to Active Directory Server

Automated Unix to Windows Active Directory FTP I have done many automated FTP scripts using the following logic: =============================== echo "Starting the FTP transfer..." { echo " open 192.168.1.100 user username password ascii put... (1 Reply)
Discussion started by: Cbish68
1 Replies

6. Shell Programming and Scripting

automated ftp.

Hi I am trying to delete some specific files ( files other than created today) from the server on a cron basis. I wrote a small script, but I am stuck up in how to delete only specific files. #!/usr/bin/expect -f set IP set timeout -1 spawn ftp $IP expect ): send "username\n"... (10 Replies)
Discussion started by: sangfroid
10 Replies

7. Programming

How to check for a directory during FTP from WinNT to HP-UNIX

hi All, I have to Ftp a Directory from the WinNt to Hp-Unix, before that i have to check wether the same directory is present on HP-Unix, if it is then i have to delete that,& do the fresh FTP. The problem is that i have to implement this in a C Program,which i have to develop on WinNT Envt.... (1 Reply)
Discussion started by: asifkhan
1 Replies

8. Shell Programming and Scripting

Status check of Automated FTP

Hi, I've following code fragment as a part of 1 of my scripts. Function is supposed to perform automated ftp to designated host. Here are the details:- #! /usr/bin/ksh < some code> perform_ftp() { #Assume that file to transfer is available in current directory ... (5 Replies)
Discussion started by: anijog
5 Replies

9. UNIX for Advanced & Expert Users

Automated FTP

My requiremnet is to write a FTP script which will ftp a file to a specified ftp url. How can I automate the process usnig the unix cron. (11 Replies)
Discussion started by: shauche
11 Replies
Login or Register to Ask a Question