Sponsored Content
Full Discussion: FTP Status verification
Top Forums UNIX for Dummies Questions & Answers FTP Status verification Post 302388881 by jgrogan on Thursday 21st of January 2010 05:59:12 PM
Old 01-21-2010
FTP Status verification

(In my case, I am sending files to a remote location).

In very general terms, I would look for the number of occurrences of lines in the log file starting with the value (string) "226 ". I would expect one of these for each successfully-transferred file. Obviously, to use this technique you need to know how many files you are sending at the outset. Often, but not always, this is straightforward to calculate in advance and retain in a shell variable for comparisons later.

HTH
J.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file status during FTP

Help!!!! Can Anyone out there help me? I need to write a script to automate a task to translate files. The files will be transfered through ftp to the workstation. Is there a way to check the file status whether the file has finished being transfered or still transfering. Or is there a way to... (3 Replies)
Discussion started by: sean76
3 Replies

2. UNIX for Advanced & Expert Users

ftp exit status.

Does ftp from unix have an exit status. In the sense after ftp is invoked and if the ftp fails during file transfer does it exit out with a status other than 0. What is do right now is invoke ftp and right it to a log and then grep for 'File Transferred Sucessfully'. Is this the only way to do it... (1 Reply)
Discussion started by: oracle8
1 Replies

3. Shell Programming and Scripting

FTP Status

When performing an FTP, does anyone know how to return the commands (i.e. 250) to see if it was successful? ftp -n XXX.XXX.XXX.XXX <<- eof User Pswd cd xxx/xxxx/xxx bin mput * quit eof Thanks (1 Reply)
Discussion started by: rvprod
1 Replies

4. Shell Programming and Scripting

ftp file verification

I need a simple method to verify that an automated ftp script was successful. The ftp command can exit without error and the file may not have been successfully sent. It's rare, but it happens. I could write a script that would use md5sum before and after sending the file. But, what I really... (7 Replies)
Discussion started by: gopat
7 Replies

5. Shell Programming and Scripting

FTP status

HI I am looking for a command, which redirect the ftp result to a text file. So I can analysis all the result code. I am also new on UNIX. Normally I ftp by using the .netrc. Is there any way when I exit from the .netrc instead of displaying the status by ftp -v, can I pipe/sendit it... (5 Replies)
Discussion started by: shah2
5 Replies

6. Shell Programming and Scripting

return ftp status

Hello, I still have problems when trying to figure out if the status of an ftp was successful. I ftp to different types (nt, vax, unix, etc...) of machines. I am trying to write a universal script that will ftp a file and then check to see if the ftp was successful. I have tried the... (12 Replies)
Discussion started by: blt123
12 Replies

7. Shell Programming and Scripting

Ftp Status Check

Hi, I'm using the below script to ftp the file passed as 3rd argument. I'm passing the source and destination directory as 1st and 2nd argument. This script does the ftp successfully. The script displays the echo before ftp stmt and does the ftp and does not display the stmts after that... (4 Replies)
Discussion started by: acheepi
4 Replies

8. Shell Programming and Scripting

How to check the FTP Status?

Hi, I wrote a script that is generating a file and then i have to ftp this file on another server. For this i am using mput to put the file. How can i make sure that the file was ftp'd correctly to the another server, is there any status check ? Thanks. (1 Reply)
Discussion started by: smc3
1 Replies

9. Shell Programming and Scripting

Check FTP Status

To all, I need to run a ftp command in one of my scripts and I need to evaluate what happens after it's done. The problem is the script would not capture the ftp responses. If I type the same thing on the command line, I get all kinds of responses. I would like to capture the same responses in... (2 Replies)
Discussion started by: april
2 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
uucp(1) 						      General Commands Manual							   uucp(1)

NAME
uucp, uulog, uuname, uutry - UNIX system to UNIX system copy SYNOPSIS
[options] source_files destination_file number] system]... number] debug_level] DESCRIPTION
copies files named by the source_files argument to the destination identified by the destination_file argument. When copying files to or from a remote system, source_files and destination_file can be a path name on the local system, or have the form: where system_name is the name of a remote system in a list of system names known to When copying files to (but not from) a remote system, system_name can also be a chained list of remote system names such as: in which case an attempt is made to send the file, via the specified route, to the destination. Care should be taken to ensure that inter- mediate nodes in the route are configured to forward information (see for restrictions). The shell metacharacters and appearing in path_name are expanded on the appropriate system. path_name can be one of: o A full path name. o A path name preceded by where user is a login name on the specified system and is replaced by that user's login directory. (If an invalid login is specified, the default public directory is used instead. o A path name preceded by where destination is appended to This destination is treated as a file name unless more than one file is being transferred by this request or the destination is already a directory. To ensure that destination is a directory, append a to the destination argument. For example, as the destina- tion argument causes directory to be created if it does not already exist, and places the requested file or files in that directory. o Anything else is prefixed by the current directory. If an erroneous path name is specified for the remote system, the copy fails. If destination_file is a directory, the file name part of the source_file argument is used. preserves execute permissions across the transmission and sets read and write permissions to 0666 (see chmod(2) and Access Control Lists below). Options recognizes the following options: Do not copy local file to the spool directory for transfer to the remote machine (default). Force the copy of local files to the spool directory for transfer. Make all necessary directories for the file copy (default). Do not make intermediate directories for the file copy. grade is a single letter or number. A lower ASCII sequence value for grade causes the job to be transmitted earlier in a given conversation between systems. Output the ASCII job identification string on standard output. This job identification can be used by to obtain the status or terminate a job (see uustat(1)). Send mail to the requester when the copy is completed. Notify user on the remote system that a file was sent. Do not start the file transfer; just queue the job. Report status of the transfer to file. Note that file must be a full path name. Produce debugging on standard output. debug_level is a number between 0 and 9; higher numbers give more information. uulog queries a log file of transactions in a file system. The following options cause to print logging information: Print information about work involving system. Do a (see tail(1)) of the file transfer log for system. Other options used in conjunction with the and options above are: Search for the given system in the file instead of in the log file. Do a tail(1) command of number lines. uuname lists the names of known systems. returns the local system's default name. uutry tests for the successful login to the remote system. This is executed for checking communication channel. Starts in the MASTER mode. The default is SLAVE mode. Do work only for the system specified by system. If there is no work for system on the local spool directory, initiate a connection to system to determine if system has work for the local system. This option must be used if is specified. Produce debugging on standard output. debug_level is a number between 0 and 9; higher numbers give more information. When started by a local program, is considered the MASTER and attempts a connection to a remote system. If is started by a remote system, it is considered to be in SLAVE mode. Access Control Lists (ACLs) A file's optional ACL entries are not preserved across transmission. Instead, new files have a summary of the access modes (as returned in by see stat(2)). EXTERNAL INFLUENCES
Environment Variables determines the format and contents of date and time strings displayed by and commands. determines the language in which messages are displayed by and commands. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, and behave as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multibyte character code sets are supported with the exception that multibyte-character file names are not supported. WARNINGS
The domain of remotely accessible files can (and for obvious security reasons, usually should) be severely restricted. In most cases, you cannot fetch files by path name from a remote system. Ask a responsible person on the remote system to send them to you. For the same reasons, you probably cannot send files to arbitrary path names. As distributed, remotely accessible files are those whose names begin (equivalent to All files received by are owned by The option only works when sending files or when receiving a single file. Receiving multiple files specified by special shell characters and does not activate the option. Protected files and files in protected directories owned by the requester can be sent by However, if the requester is root and the direc- tory is not searchable by or the file is not readable by the request fails. should be executed only with a request file that exists in the directory FILES
Configuration files Log and error files Spool directories Lock files Public directory for receiving and sending SEE ALSO
mail(1), uux(1), uucico(1M), chmod(2), stat(2), acl(5). O'Reilly & Associates, Inc. USA. O'Reilly & Associates, Inc. USA. STANDARDS CONFORMANCE
uucp(1)
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy