Sponsored Content
Full Discussion: return ftp status
Top Forums Shell Programming and Scripting return ftp status Post 23352 by Perderabo on Friday 21st of June 2002 12:47:36 PM
Old 06-21-2002
The 226 is consistent. The text that follows it is not. As the rfc says:
Quote:
It is intended that the three digits contain enough encoded information that the user-process (the User-PI) will not need to examine the text and may either discard it or pass it on to the user, as appropriate. In particular, the text may be server-dependent, so there are likely to be varying texts for each reply code.
If you get a 226 in response to a request for a transfer, the server is trying to tell you that it succeeded.

226 Transfer Complete
226 Closing Data Connection

mean almost the same thing. After a successful tranfer, the rfc allows a sever to keep a data connection open and re-use it for the next transfer. This is rarely done and the second message is underscoring that it wasn't done.

226 Everything's Groovy
226 That worked
226 looks good to me

would all be legal ways for a server to tell you that the transfer completed successfully. I've never seen anyone do that, but English is certainly not required by the rfc.

You really should read that RFC that I linked to in my earlier post. It will tell you what a server can and cannot do. The whole section on reply codes would especially help you out.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Return status...

Hello there! Here is my problem. I hope I can get some help about it. I need to know how can I get the return code of an application in the Unix shell script. The script is like below: PREVIOUS STATEMENT & VARIABLES sqlplus scott/tiger @$sqldir/$sqlscript NEXT STATEMENT (Like... (7 Replies)
Discussion started by: Shaz
7 Replies

2. Shell Programming and Scripting

Return status of all previous runs

hi, I set the crontab to execute script A every 5 minutes from 9:00 am to 4:00 pm everyday, now at 12:00am I want to run another script if and only if all the previous runs of script A return OK, can anyone tell me how it could be done? thank you very very much! (4 Replies)
Discussion started by: mpang_
4 Replies

3. Shell Programming and Scripting

Verify scp return status

Hi all below is a snippet of my perl codesystem ("scp -pq $dest_file $path");How i can i trap the return status? ie if the scp fails how can i know ? (2 Replies)
Discussion started by: new2ss
2 Replies

4. HP-UX

Return of EXIT status ( $? )

I have the question: How return the exit code from then assign : VAR=$(command ) for ex. VAR=$(ls ....) VAREXIT=$? echo $VAREXIT VAREXIT is equal to 0 if the directory exist or not exist. WHI?? if i execute the command direct from line-command , the value of $? is different if... (1 Reply)
Discussion started by: ZINGARO
1 Replies

5. Shell Programming and Scripting

evaluate return status of a function

Hi all I'm trying to evalute the return status of a function without much success. I've put a very basic example below to explain. check_ok() works fine but when used within an if statement, it always returns true, whether it is true or false. I'm guessing it returns true as the function... (4 Replies)
Discussion started by: tig2810
4 Replies

6. Shell Programming and Scripting

capturing C++ binary return status in perl

Hello, I have a C++ binary that runs in my perl script. But, Currently, the binary is doing a core dump and i want to capture the retrun status of the binary to report as an issue. Can you please help me on this. Thanks, Sateesh (1 Reply)
Discussion started by: kotasateesh
1 Replies

7. Shell Programming and Scripting

return status after run the shell script

Hello, I wanted to delete all files which are placed 14 days back. Here is my below script. My script works very well and it deletes all files 14 days back. I wanted to display message incase if the delete script is not successful. The below script returns always successful. But the directory... (6 Replies)
Discussion started by: govindts
6 Replies

8. UNIX for Dummies Questions & Answers

opposite return status in c shell

there is something wrong with my system. when I do this: diff file1 file1 && echo 1 the output is 1. but diff file1 file2 >/dev/null && echo 1 output nothing while diff file1 file2 >/dev/null || echo 1 shows 1. the same with "grep" return status. they are both GNU utilities.... (5 Replies)
Discussion started by: phil518
5 Replies

9. Shell Programming and Scripting

Return Status

Hi can you explain me, what does variables $@ and $* return and how are they used, if can give me a sample example it could be helpful. Thanks in advance, Regards, Abhishek S. (1 Reply)
Discussion started by: abhisheksunkari
1 Replies

10. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies
Request Attributes(3)					       globus gass transfer					     Request Attributes(3)

NAME
Request Attributes - Functions int globus_gass_transfer_requestattr_init (globus_gass_transfer_requestattr_t *attr, char *url_scheme) int globus_gass_transfer_requestattr_destroy (globus_gass_transfer_requestattr_t *attr) Proxy Server int globus_gass_transfer_requestattr_set_proxy_url (globus_gass_transfer_requestattr_t *attr, char *proxy_url) int globus_gass_transfer_requestattr_get_proxy_url (globus_gass_transfer_requestattr_t *attr, char **proxy_url) Block Size int globus_gass_transfer_requestattr_set_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_t block_size) int globus_gass_transfer_requestattr_get_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_t *block_size) File Mode int globus_gass_transfer_requestattr_set_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_t file_mode) int globus_gass_transfer_requestattr_get_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_t *file_mode) Connection Reuse int globus_gass_transfer_requestattr_set_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_t connection_reuse) int globus_gass_transfer_requestattr_get_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_t *connection_reuse) Socket Send Buffer Size int globus_gass_transfer_requestattr_set_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, int sndbuf) int globus_gass_transfer_requestattr_get_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, int *sndbuf) Receive Socket Buffer int globus_gass_transfer_requestattr_set_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, int rcvbuf) int globus_gass_transfer_requestattr_get_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, int *rcvbuf) TCP Nodelay int globus_gass_transfer_requestattr_set_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_t nodelay) int globus_gass_transfer_requestattr_get_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_t *nodelay) Authorization int globus_gass_transfer_secure_requestattr_set_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_t mode, char *subject) int globus_gass_transfer_secure_requestattr_get_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_t *mode, char **subject) Detailed Description The GASS Transfer library uses Globus objects to provide an extensible way of creating protocol-specific attributes. Function Documentation int globus_gass_transfer_requestattr_init (globus_gass_transfer_requestattr_t *attr, char *url_scheme) Initialize a request attribute. This function initializes the attr to contain a new protocol-specific request attribute. Parameters: attr The attribute set to be initialized. url_scheme The scheme which which the attribute will be used for. Return values: GLOBUS_SUCCESS The attribute was successfully initialized. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER Either attr or url_scheme was GLOBUS_NULL. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol module currently registered with GASS Transfer Library handles URLs with the specified url_scheme. int globus_gass_transfer_requestattr_destroy (globus_gass_transfer_requestattr_t *attr) Destroy a request attribute. This function destroys the attribute set specified in attr. Parameters: attr The attribute set to be destroyed. Return values: GLOBUS_SUCCESS The attribute was successfully destroyed. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_proxy_url (globus_gass_transfer_requestattr_t *attr, char *proxy_url) Set/Get the proxy server attribute for a GASS transfer attribute set. This attribute allows the user to use a proxy server to handle a URL request. Parameters: attr The attribute set to be modified proxy_url The new value of the proxy_url attribute. This may be GLOBUS_NULL if no proxy is to be used to access URLs with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_tblock_size) Set/Get the block size attribute for a GASS transfer attribute set. This attribute allows the user to suggest a preferred block size of a server to handle a URL request. Parameters: attr The attribute set to query or modify. block_size The data block size that should be used to process requests with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_tfile_mode) Set/Get the file mode attribute for a GASS transfer attribute set. This attribute allows the user to control whether the file will be transferred in ASCII or binary file mode. Parameters: attr The attribute set to query or modify. file_mode The value of the file mode attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_tconnection_reuse) Set/Get the connection reuse attribute for a GASS transfer attribute set. This attribute allows the user to control whether the connection associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. connection_reuse The value of the connection reuse attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, intsndbuf) Set/Get the send buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket send buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. sndbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, intrcvbuf) Set/Get the receive buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. rcvbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_tnodelay) Set/Get the TCP nodelay attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. nodelay The value of the nodelay attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_secure_requestattr_set_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_tmode, char *subject) Set/Get the authorization attribute for a GASS transfer attribute set. This attribute allows the user to control what type of authorization should be done when GASS Transfer requests are processed. Parameters: attr The attribute set to query or modify. mode The authorization mode to use. subject The subject name of the authorized subject, if mode is GLOBUS_GASS_TRANSFER_AUTHORIZE_SUBJECT Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_proxy_url (globus_gass_transfer_requestattr_t *attr, char **proxy_url) Set/Get the proxy server attribute for a GASS transfer attribute set. This attribute allows the user to use a proxy server to handle a URL request. Parameters: attr The attribute set to be modified proxy_url The new value of the proxy_url attribute. This may be GLOBUS_NULL if no proxy is to be used to access URLs with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_t *block_size) Set/Get the block size attribute for a GASS transfer attribute set. This attribute allows the user to suggest a preferred block size of a server to handle a URL request. Parameters: attr The attribute set to query or modify. block_size The data block size that should be used to process requests with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_t *file_mode) Set/Get the file mode attribute for a GASS transfer attribute set. This attribute allows the user to control whether the file will be transferred in ASCII or binary file mode. Parameters: attr The attribute set to query or modify. file_mode The value of the file mode attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_t *connection_reuse) Set/Get the connection reuse attribute for a GASS transfer attribute set. This attribute allows the user to control whether the connection associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. connection_reuse The value of the connection reuse attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, int *sndbuf) Set/Get the send buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket send buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. sndbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, int *rcvbuf) Set/Get the receive buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. rcvbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_t *nodelay) Set/Get the TCP nodelay attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. nodelay The value of the nodelay attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_secure_requestattr_get_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_t *mode, char **subject) Set/Get the authorization attribute for a GASS transfer attribute set. This attribute allows the user to control what type of authorization should be done when GASS Transfer requests are processed. Parameters: attr The attribute set to query or modify. mode The authorization mode to use. subject The subject name of the authorized subject, if mode is GLOBUS_GASS_TRANSFER_AUTHORIZE_SUBJECT Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. Author Generated automatically by Doxygen for globus gass transfer from the source code. Version 7.2 Mon Apr 30 2012 Request Attributes(3)
All times are GMT -4. The time now is 06:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy