07-23-2019
Would you consider changing the server side to enable logging? That would give you a trace of files transferred, but not in-flight information. It is very specific on the OS & version number you have.
If you use sftp or scp, you can get a progress report on screen if that helps. Can you tell us more about the client, server and protocol used? Perhaps pv might have something you can use.
For plain ftp you might have to list the file to be transferred first and then you can work out where you are from that.
Robin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
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
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
Can i capture the status of put command after i ftp a file? (4 Replies)
Discussion started by: aixjadoo
4 Replies
10. UNIX for Dummies Questions & Answers
Do we have any defined error code for FTP status (2 Replies)
Discussion started by: krissathish
2 Replies
LEARN ABOUT OPENSOLARIS
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server [-f log_facility] [-l log_level]
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. Command-line flags to sftp-server should be specified in the Subsys-
tem declaration. See sshd_config(4) for more information.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
OPTIONS
Valid options are listed below. As stated above, these are to be specified in the Subsystem declation of sshd_config.
-f log_facility
Specifies the facility code that is used when logging messages from sftp-server. The possible values are: DAEMON, USER, AUTH, LOCAL0,
LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The default is AUTH.
-l log_level
Specifies which messages will be logged by sftp-server. The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1,
DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that sftp-server performs on behalf of the client. DEBUG and DEBUG1 are equiva-
lent. DEBUG2 and DEBUG3 each specify higher levels of debugging output. The default is ERROR.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/ssh/sftp-server Server-side binary.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
SunOS 5.11 24 Oct 2007 sftp-server(1M)