Sponsored Content
Full Discussion: ftp append question
Special Forums UNIX and Linux Applications ftp append question Post 302148777 by Lindarella on Monday 3rd of December 2007 04:25:30 PM
Old 12-03-2007
ftp append question

Quick question.

Will append act like 'put' if the file I'm telling it to append to doesn't exist?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

FTP question

Hi all, I have a simple script that runs each night and transfers a number of files to a remote server. Before files are transferred existing files on the remote box are deleted. All works OK except the deletion part on the remote box returning no such file or directory. As work around Ihave... (2 Replies)
Discussion started by: tzp2ft
2 Replies

2. UNIX for Advanced & Expert Users

FTP Question

Hi, I'm attempting to FTP several files using MGET. My problem is that I need to cd to a directory with this naming convention: YYMMDDHHMM - where the hour and minute is unknown When I issue cd /ftpdirectory/YYMMDD* from FTP, I receive "No such file or directory I need a way to get the... (6 Replies)
Discussion started by: kdreaves
6 Replies

3. Shell Programming and Scripting

FTP Question

How do I setup a parameter driven executable script which FTP's a file (input as a parameter) in Unix (AIX) to my desktop (Windows) ? For example I would ideally like to do this - Unix Prompt> FtpFetch abc.log and get this abc.log on my desktop. Thanks to anyone that can help! I am... (1 Reply)
Discussion started by: kapjag
1 Replies

4. UNIX for Dummies Questions & Answers

append question

I have a .pl script that is grabbing information and creating two different .txt files, I need to append one to the other. open GARPFILE; open GARPFILEXX; cat $gGarpFileXx >> $gGarpFile; close GARPFILE; close GARPFILEXX; but I'm getting this: Useless use... (1 Reply)
Discussion started by: mr_evans2u
1 Replies

5. UNIX for Dummies Questions & Answers

FTP Question

I'm basically trying to FTP a file to a differnt node, first putting the FTP commmands into a text file and then piping the commands file into the ftp command as follows.... echo "user $USERNAME $PASSWORD" > ftp_cmds echo "put $SQLOUT /users/$USERNAME/$SQLOUT" >> ftp_cmds echo "quit" >>... (4 Replies)
Discussion started by: djkane
4 Replies

6. Shell Programming and Scripting

perl: simple question on string append

I want to append a decimal number to a string. But I want to restrict the number to only 2 decimal points for e.g: my $output = "\n The number is = "; my $number = 2.3333333; $output = $output . $number; But I want the $output as: "The number is = 2.33"; and not 2.3333333 (I do not... (1 Reply)
Discussion started by: the_learner
1 Replies

7. UNIX for Dummies Questions & Answers

ftp append

What is the syntax for an ftp that is appending to the target file? I understand to use the append command, but how do you tell it which source file to append to which target file. ftpEngine() { ftp -inv ${FTP_SERVER} << EOF_FTP >> ${FTP_LOG} user ${FTP_USER} ${FTP_PSWD} cd ${FTP_DIR1}... (1 Reply)
Discussion started by: brdholman
1 Replies

8. Shell Programming and Scripting

append date time stamp via ftp script

I have searched several thread and not found my solution, so I am posting a new qustion. I have a very simple script on an AIX server that FTPs 2 files to a MS FTP server. These 2 files are created on the AIX server every hour, with a static name. I need to FTP the files to the MS server, but... (1 Reply)
Discussion started by: sknisely
1 Replies

9. Shell Programming and Scripting

question about append columns

I like to do the following, please help! Thanks a lot for f in seq(f1 f2 f3 g1 h1 t2) do cut -d "+" -f2 $f > $f.nums paste ? # each loop will attach additional column to the created file $f.nums, how to do this??? done (1 Reply)
Discussion started by: ksgreen
1 Replies

10. Shell Programming and Scripting

Ftp with bash, append file where left off

I'm working on a bash script to finish uploading a file. I need a way to get $filesize so that "restart $filesize" will work. Here is my script: ftp -n -v <<END_SCRIPT open ftp.$domain user $user@$domain $password size $file restart $filesize put $file quit END_SCRIPTWayne Sallee... (9 Replies)
Discussion started by: WayneSallee
9 Replies
Client-Initiated Operations(3)				       globus gass transfer				    Client-Initiated Operations(3)

NAME
Client-Initiated Operations - Functions int globus_gass_transfer_register_get (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_gass_transfer_callback_t callback, void *user_arg) int globus_gass_transfer_get (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url) int globus_gass_transfer_register_put (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length, globus_gass_transfer_callback_t callback, void *user_arg) int globus_gass_transfer_put (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length) int globus_gass_transfer_register_append (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length, globus_gass_transfer_callback_t callback, void *user_arg) int globus_gass_transfer_append (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length) Detailed Description GASS Transfer Client Operations. One mode of using the GASS Transfer API is to initiate file transfers. The operations supported by the GASS Transfer API are file get, put, and append. These operations are provided for HTTP, and HTTPS file servers. The protocol module interface allows support for additional protocols to be added easily. The GASS transfer library provides both blocking and non-blocking versions of all its client functions. When a blocking function completes, or the non-blocking function's callback is called, the user should check the request's status to discover whether the transfer was completed successfully, denied, or referred. Function Documentation int globus_gass_transfer_register_get (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_gass_transfer_callback_tcallback, void *user_arg) Nonblocking file get. This function initiates a new 'get' request of the file named by url. The entire file will be transfered from the server if the file exists and user is authorized to do so. This function does not block; instead, the user's callback function will be called once the GASS library has determined whether the file can be retrieved or not. Upon returning from this function, the request handle is initialized to refer to the get request's state. If the server can't store the file at url, but has an alternative location for the user to store to, then the callback function will be called with the request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED. Parameters: request A pointer to an uninitialized request handle. attr Request attributes. url URL to get callback Function to call once the URL has been accepted, referred, or denied by the server. user_arg User-supplied argument to the callback function. Return values: GLOBUS_SUCCESS The get was successfully initiated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The get could not be processed. GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the get. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a get on this URL type is implemented. GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed. See also: globus_gass_transfer_get() int globus_gass_transfer_get (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url) Blocking file get. This function initiates a new 'get' request of the file named by url. The entire file will be transfered from the server if the file exists and user is authorized to do so. This function blocks until the GASS library has determined whether the file may be retrievied by the caller, may not because it is a referral to another URL or URLs, or the server has denied the request. Upon returning from this function, the request handle is initialized to refer to the get request's state. This request handle must be destroyed after the user has finished processing the data associated with the callback. If the file doesn't exist at url, but a referral does, then this function will return with the request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED. Parameters: request A pointer to an uninitialized request handle. attr Request attributes. url URL to get Return values: GLOBUS_SUCCESS The get was successfully initiated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request or attr was GLOBUS_NULL. The get could not be processed. GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the get. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a get on this URL type is implemented. GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed. See also: globus_gass_transfer_register_get() int globus_gass_transfer_register_put (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_tlength, globus_gass_transfer_callback_tcallback, void *user_arg) Nonblocking file put. This function initiates a new 'put' request of the file named by url. The entire file will be transfered to the server if the user is authorized to do so. This function does not block; instead, the user's callback function will be called once the GASS library has determined whether the file may be stored or not. Upon returning from this function, the request handle is initialized to refer to the put request's state. If the server can't store the file at url, but has an alternative location for the user to store to, then the callback function will be called with the request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED. Parameters: request A pointer to an uninitialized request handle. attr Request attributes. url URL to put. length The length of the data to put to the url, if known. If this parameter is set to GLOBUS_GASS_LENGTH_UNKNOWN, then the put may fail if the protocol does not support arbitrarily-length files. callback Function to call once the URL has been accepted, referred, or denied by the server. user_arg User-supplied argument to the callback function. Return values: GLOBUS_SUCCESS The put was successfully initiated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The put could not be processed. GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the put. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a put on this URL type is implemented. GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed. See also: globus_gass_transfer_put() int globus_gass_transfer_put (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_tlength) Blocking file put. This function initiates a new 'put' request of the file named by url. The entire file will be transfered to the server if the user is authorized to do so. This function blocks until the GASS library has determined whether the file may be retrieved by the caller, may not because it is a referral to another URL or URLs, or the server has denied the request. Upon returning from this function, the request handle is initialized to refer to the put request's state. If the server can't store the file at url, but has an alternative location for the user to store to, then this function return with request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED. Parameters: request A pointer to an uninitialized request handle. attr Request attributes. url URL to put. length The length of the data to put to the url, if known. If this parameter is set to GLOBUS_GASS_LENGTH_UNKNOWN, then the put may fail if the protocol does not support arbitrarily-length files. Return values: GLOBUS_SUCCESS The get was successfully initiated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request or attr was GLOBUS_NULL. The get could not be processed. GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the get. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a put on this URL type is implemented. GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed. See also: globus_gass_transfer_register_put() int globus_gass_transfer_register_append (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_tlength, globus_gass_transfer_callback_tcallback, void *user_arg) Nonblocking file append. This function initiates a new 'append' request of the file named by url. The entire file will be transfered to the server if the user is authorized to do so. This function does not block; instead, the user's callback function will be called once the GASS library has determined whether the file may be stored or not. Upon returning from this function, the request handle is initialized to refer to the append request's state. If the server can't store the file at url, but has an alternative location for the user to store to, then the callback function will be called with the request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED. Parameters: request A pointer to an uninitialized request handle. attr Request attributes. url URL to append to. length The length of the data to append to the url, if known. If this parameter is set to GLOBUS_GASS_LENGTH_UNKNOWN, then the append may fail if the protocol does not support arbitrarily-length files. callback Function to call once the URL has been accepted, referred, or denied by the server. user_arg User-supplied argument to the callback function. Return values: GLOBUS_SUCCESS The put was successfully initiated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The put could not be processed. GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the put. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a append on this URL type is implemented. GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed. See also: globus_gass_transfer_append() int globus_gass_transfer_append (globus_gass_transfer_request_t *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_tlength) Blocking file append. This function initiates a new 'append' request of the file named by url. The entire file will be transfered to the server if the user is authorized to do so. This function blocks until the GASS library has determined whether the file may be retrieved by the caller, may not because it is a referral to another URL or URLs, or the server has denied the request. Upon returning from this function, the request handle is initialized to refer to the append request's state. If the server can't store the file at url, but has an alternative location for the user to store to, then this function return with request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED. Parameters: request A pointer to an uninitialized request handle. attr Request attributes. url URL to append to. length The length of the data to append to the url, if known. If this parameter is set to GLOBUS_GASS_LENGTH_UNKNOWN, then the append may fail if the protocol does not support arbitrarily-length files. Return values: GLOBUS_SUCCESS The put was successfully initiated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The put could not be processed. GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the put. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a append on this URL type is implemented. GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed. See also: globus_gass_transfer_register_append() Author Generated automatically by Doxygen for globus gass transfer from the source code. Version 7.2 Mon Apr 30 2012 Client-Initiated Operations(3)
All times are GMT -4. The time now is 04:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy