Sponsored Content
Top Forums Shell Programming and Scripting how to move a file from one server to another server using FTP in shell script? Post 87701 by vino on Thursday 27th of October 2005 12:47:57 AM
Old 10-27-2005
Did you have a look at the forums' FAQ ?

Here is a link - Automate FTP / Scripting FTP Transfers
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script to ftp from windows server

Hello All, I've to write a shell script to transfer some files to/from windows server. I can put & get files simply by doing ftp but need to automate this. So I tried for this -. HOST=.hostname USER='username' PASSWD='***' ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS... (8 Replies)
Discussion started by: shilpa.rajput
8 Replies

2. Shell Programming and Scripting

FTP from Linux to windows server by shell script

Hi, Please advice whether my below requirement is feasible, My requirement : Automated FTP from linux server to windows server using a shell script on every monday. If feasible, please help me how to do this ? Thanks in advance (2 Replies)
Discussion started by: apsprabhu
2 Replies

3. Shell Programming and Scripting

Shell script for FTP a file from one server to another server

Hi Can any one help me for script. I need a script and this script has to execute daily to move the files. FTP from one server to another server EX: Sep 10 06:24 abc.txt Sep 11 06.56 abc.txt Sep 12 08.23 abc.txt these files are located at a/b/c/e/f in 123 server and copy... (0 Replies)
Discussion started by: mahantysk
0 Replies

4. UNIX for Dummies Questions & Answers

ftp files from one server to another using shell script

Hi Guys Any Help I have created a spool file that i need to copy onto another server using FTP in a shell script both servers are linux (3 Replies)
Discussion started by: itai
3 Replies

5. Emergency UNIX and Linux Support

Shell script to get all the files from FTP server

Hi Guru's, I am new to UNIX. my requirement is to log on to FTP server and get all the .txt files. i have developed one script by searching some forums but getting error and not able to fix them. pls see below code. ftp -i-n<<EOF open $FTP_HOST... (30 Replies)
Discussion started by: arund_01
30 Replies

6. Shell Programming and Scripting

How to FTP the latest file, based on date, from a remote server through a shell script?

How to FTP the latest file, based on date, from a remote server through a shell script? I have four files to be FTP'ed from remote server. They are of the following format. build1_runtime_mmddyyyy.txt build2_runtime_mmddyyyy.txt build3_runtime_mmddyyyy.txt buifile_count_mmddyyyy.txt ... (9 Replies)
Discussion started by: imran_affu
9 Replies

7. Shell Programming and Scripting

How to move the older than 30 file to another ftp server

Hi All I need to move the older than 30 days file to another ftp server. I have source structure like this Files folder Folder1 Folder2 Folder3 I need to create same Target structure and I need to move the older than 30 day file to another ftp server, can you please suggest me how I develop... (1 Reply)
Discussion started by: murari83.ds
1 Replies

8. Shell Programming and Scripting

Shell script to copy a file from one server to anther server and execute the binary

Hi , Is there any script to copy a files (weblogic bianary + silent.xml ) from one server (linux) to another servers and then execute the copy file. We want to copy a file on multiple servers and run the installation. Thanks (1 Reply)
Discussion started by: Nawrajesh
1 Replies

9. Shell Programming and Scripting

Download latest file via ftp server unix through shell script

Hello this is my first post in this forum , I dont want to be unhappy.. I am writing one script but facing difficulty to find the latest file with some new pattern My requirement is 1. The file is coming like "ABCD-23220140303" at FTP server once in a week. 2. script will run on daily... (3 Replies)
Discussion started by: ajju
3 Replies

10. Open Source

Shell script file movement to a Mail Box server using ftp commands

Hi All, I have a current Process that runs "windows script " for the file movement that needs to changed to a "DataStage Process (Using shell script )" Source :Text file is getting generated as part of Datastage Jobs processes and resides in a shared drive (Unix server) Target :ftp... (2 Replies)
Discussion started by: developer.dwh9
2 Replies
Handle Management(3)						 globus ftp client					      Handle Management(3)

NAME
Handle Management - Typedefs typedef struct globus_i_ftp_client_handle_t * globus_ftp_client_handle_t" Initialize globus_result_t globus_ftp_client_handle_init (globus_ftp_client_handle_t *handle, globus_ftp_client_handleattr_t *attr) Destroy globus_result_t globus_ftp_client_handle_destroy (globus_ftp_client_handle_t *handle) URL Caching globus_result_t globus_ftp_client_handle_cache_url_state (globus_ftp_client_handle_t *handle, const char *url) globus_result_t globus_ftp_client_handle_flush_url_state (globus_ftp_client_handle_t *handle, const char *url) User Pointer globus_result_t globus_ftp_client_handle_set_user_pointer (globus_ftp_client_handle_t *handle, void *user_pointer) globus_result_t globus_ftp_client_handle_get_user_pointer (const globus_ftp_client_handle_t *handle, void **user_pointer) Plugins globus_result_t globus_ftp_client_handle_add_plugin (globus_ftp_client_handle_t *handle, globus_ftp_client_plugin_t *plugin) globus_result_t globus_ftp_client_handle_remove_plugin (globus_ftp_client_handle_t *handle, globus_ftp_client_plugin_t *plugin) Detailed Description Create/Destroy/Modify an FTP Client Handle. Within the Globus FTP Client Library, all FTP operations require a handle parameter. Currently, only one FTP operation may be in progress at once per FTP handle. FTP connections may be cached between FTP operations, for improved performance. This section defines operations to create and destroy FTP Client handles, as well as to modify handles' connection caches. Typedef Documentation typedef struct globus_i_ftp_client_handle_t* globus_ftp_client_handle_t FTP Client Handle. An FTP client handle is used to associate state with a group of operations. Handles can have attributes associated with them. All FTP operations take a handle pointer as a parameter. See also: globus_ftp_client_handle_init(), globus_ftp_client_handle_destroy(), globus_ftp_client_handleattr_t Function Documentation globus_result_t globus_ftp_client_handle_init (globus_ftp_client_handle_t *handle, globus_ftp_client_handleattr_t *attr) Initialize a client FTP handle. Initialize an FTP handle which can be used in subsequent get, put, or transfer requests. A handle may have at most one get, put, or third-party transfer in progress. Parameters: handle The handle to be initialized. attr Initial attributes to be used to create this handle. See also: globus_ftp_client_handle_destroy() globus_result_t globus_ftp_client_handle_destroy (globus_ftp_client_handle_t *handle) Destroy a client FTP handle. A FTP client handle may not be destroyed if a get, put, or third-party transfer is in progress. Parameters: handle The handle to be destroyed. See also: globus_ftp_client_handle_init() globus_result_t globus_ftp_client_handle_cache_url_state (globus_ftp_client_handle_t *handle, const char *url) Cache connections to an FTP server. Explicitly cache connections to URL server in an FTP handle. When an URL is cached, the client library will not close the connection to the URL server after a file transfer completes. Parameters: handle Handle which will contain a cached connection to the URL server. url The URL of the FTP or GSIFTP server to cache. See also: globus_ftp_client_flush_url_state() globus_result_t globus_ftp_client_handle_flush_url_state (globus_ftp_client_handle_t *handle, const char *url) Remove a cached connection from the FTP client handle. Explicitly remove a cached connection to an FTP server from the FTP handle. If an idle connection to an FTP server exists, it will be closed. Parameters: handle Handle which will contain a cached connection to the URL server. url The URL of the FTP or GSIFTP server to cache. globus_result_t globus_ftp_client_handle_set_user_pointer (globus_ftp_client_handle_t *handle, void *user_pointer) Set/Get the user pointer field from an ftp client handle. The user pointer is provided to all the user of the FTP client library to assocate a pointer to any application-specific data to an FTP client handle. This pointer is never internally used by the client library. Parameters: handle The FTP client handle to set or query. user_pointer The value of the user pointer field. Note: Access to the user_pointer are not synchronized, the user must take care to make sure that multiple threads are not modifying it's value. globus_result_t globus_ftp_client_handle_add_plugin (globus_ftp_client_handle_t *handle, globus_ftp_client_plugin_t *plugin) Add a plugin to an FTP client handle. This function adds a plugin to an FTP client handle after it has been created. Plugins may be added to an ftp client handle whenever an operation is not in progress. The plugin will be appended to the list of plugins present in the handle, and will be invoked during any subsequent operations processed with this handle. Only one instance of a particular plugin may be added to a particular handle. Plugins may be removed from a handle by calling globus_ftp_client_remove_plugin(). Parameters: handle The FTP client handle to set or query. plugin A pointer to the plugin structure to add to this handle. See also: globus_ftp_client_remove_plugin(), globus_ftp_clent_handleattr_add_plugin(), globus_ftp_clent_handleattr_remove_plugin() globus_result_t globus_ftp_client_handle_remove_plugin (globus_ftp_client_handle_t *handle, globus_ftp_client_plugin_t *plugin) Remove a plugin to an FTP client handle. This function removes a plugin from an FTP client handle after it has been created. Plugins may be removed from an ftp client handle whenever an operation is not in progress. The plugin will be removed from the list of plugins, and will not be used during any subsequent operations processed with this handle. This function can remove plugins which were added at handle initialization time or by calling globus_ftp_client_handle_add_plugin(). Parameters: handle The FTP client handle to set or query. plugin A pointer to the plugin structure to remove from this handle. See also: globus_ftp_client_add_plugin(), globus_ftp_clent_handleattr_add_plugin(), globus_ftp_clent_handleattr_remove_plugin() globus_result_t globus_ftp_client_handle_get_user_pointer (const globus_ftp_client_handle_t *handle, void **user_pointer) Set/Get the user pointer field from an ftp client handle. The user pointer is provided to all the user of the FTP client library to assocate a pointer to any application-specific data to an FTP client handle. This pointer is never internally used by the client library. Parameters: handle The FTP client handle to set or query. user_pointer The value of the user pointer field. Note: Access to the user_pointer are not synchronized, the user must take care to make sure that multiple threads are not modifying it's value. Author Generated automatically by Doxygen for globus ftp client from the source code. Version 7.3 Mon Apr 30 2012 Handle Management(3)
All times are GMT -4. The time now is 09:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy