Sponsored Content
Top Forums Shell Programming and Scripting Check the ind file before FTP data file.... Post 302371821 by Scrutinizer on Monday 16th of November 2009 09:11:26 AM
Old 11-16-2009
You could try to ftp the indicator file to your local host. From the subsequent presence of a copy of that file on your system you can conclude that transfer was successful. If not, then repeat after 5 minutes. If it was successful, then that is the green light to immediately start the transfer of the actual data file and delete the transferred copy of the indicator file. I am sure there are more sophisticated methods, bit this is very simple and the commands for both ftp transfers are almost identical.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how could I check whether ftp a file is successfully done or not

how could i check that the ftp oof any file is successfully done. thanks in advance. (1 Reply)
Discussion started by: rinku
1 Replies

2. Shell Programming and Scripting

How to check file size before and after FTP

I want to trasfer file from 1. Unix server A to server B 2. Unix server A to windows directory Is there a way to check the size before and after FTP. I want to check the size of the file in server A before FTP and in server B after FTP in case 1 In case 2 I want to check the size of... (1 Reply)
Discussion started by: i.scientist
1 Replies

3. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

Hi, We have some clients who will place huge files in to one of the remote server. And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients. My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies

4. Shell Programming and Scripting

How check for a new file on a ftp-server

Hi there, I want to write a linux shellscript that checks a specific folder on a specific FTP-server whether there are new files or not. If there are new files I want to download them to a local directory (to gain access for an local application to these files). The problem is that the files I... (3 Replies)
Discussion started by: monstrous
3 Replies

5. Shell Programming and Scripting

need to check the file using ftp in a shell script

i need to write a shell script.. connecting to another server using ftp and check whether the file ter.txt is exists there or not. i have written scirpt partially,as i new to Unix. ftp -inv $FTPHOST > $TEMPFILE1 2> $TEMPFILE1 << EOF user $FTPUSER $FTPPW binary prompt ${CD} ls *.txt... (11 Replies)
Discussion started by: KiranKumarKarre
11 Replies

6. Shell Programming and Scripting

file check before FTP

Hi I use a shell script to transfer files from UNIX to Windows 2000 server before the FTP i need to check whether any files with the same name exists. If the files are already present it need not be FTPed else the file should be FTPed. Kindly help me. (2 Replies)
Discussion started by: Codesearcher
2 Replies

7. Shell Programming and Scripting

Check file, before FTP

:mad: Hi All, I have written a script, which will get the file from other server through FTP. It is working fine, but i want to add a code which should first check, if the file is available in the source system and then do FTP, once successfully completed, it should delete the file. Is... (4 Replies)
Discussion started by: Amit.Sagpariya
4 Replies

8. Shell Programming and Scripting

FTP file check help

hello i need check if file_name exist on remote FTP or not the FTP is anonymous and doesnt require username/pass (3 Replies)
Discussion started by: mogabr
3 Replies

9. UNIX for Dummies Questions & Answers

After Ftp'ing file to destination how to check the file if it is in correct ASCII and not corrupted

Hi Folks, While transferring file from FTP software like Filezilla the files gets corrupted. Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies

10. Shell Programming and Scripting

How to check the file locked or in use at FTP?

Hi Experts, I am beginner to shell scripting, I have a archive script which will connect to the FTP server and archive the files from FTP source location to FTP archive location. Now the problem here is, the script working for few files and not working for few.I am facing the below error... (1 Reply)
Discussion started by: spidy
1 Replies
globus_i_gass_copy_state_target_s(3)				 globus gass copy			      globus_i_gass_copy_state_target_s(3)

NAME
globus_i_gass_copy_state_target_s - SYNOPSIS
Data Fields char * url globus_gass_copy_attr_t * attr globus_mutex_t mutex globus_fifo_t queue int n_pending int n_simultaneous int n_complete globus_i_gass_copy_target_status_t status globus_gass_copy_url_mode_t mode union { struct { } ftp struct { globus_gass_transfer_request_t request } gass struct { globus_bool_t free_handle globus_bool_t seekable } io } data Detailed Description GASS copy target (e.g. source, destination) transfer information. Field Documentation char* globus_i_gass_copy_state_target_s::url url for file transfer globus_gass_copy_attr_t* globus_i_gass_copy_state_target_s::attr attributes to control file transfer globus_mutex_t globus_i_gass_copy_state_target_s::mutex coordinates the modifying of the target structure globus_fifo_t globus_i_gass_copy_state_target_s::queue a queue to manage the reading/writing of data buffers int globus_i_gass_copy_state_target_s::n_pending Used for keeping track of reads/writes in the read/write queue. int globus_i_gass_copy_state_target_s::n_simultaneous Used to limit the number of n_pending. int globus_i_gass_copy_state_target_s::n_complete Used to compute the offset for ftp writes. globus_i_gass_copy_target_status_t globus_i_gass_copy_state_target_s::status signifies the target has been successfully setup globus_gass_copy_url_mode_t globus_i_gass_copy_state_target_s::mode mode used to identify the below target union struct. struct { ... } globus_i_gass_copy_state_target_s::ftp ftp specific data globus_gass_transfer_request_t globus_i_gass_copy_state_target_s::request GASS equivelent of a handle. struct { ... } globus_i_gass_copy_state_target_s::gass GASS specific data. globus_bool_t globus_i_gass_copy_state_target_s::free_handle If the IO handle was passed as an argument then FALSE If the IO handle was created internally then TRUE. globus_bool_t globus_i_gass_copy_state_target_s::seekable Can globus_io_file_seek() be performed on this handle? struct { ... } globus_i_gass_copy_state_target_s::io IO specific data. union { ... } globus_i_gass_copy_state_target_s::data data required to perform each type of transfer Author Generated automatically by Doxygen for globus gass copy from the source code. Version 8.4 Mon Apr 30 2012 globus_i_gass_copy_state_target_s(3)
All times are GMT -4. The time now is 12:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy