Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Automate splitting of files , scp files as each split completes and combine files on target server Post 303033449 by rbatte1 on Friday 5th of April 2019 12:59:55 PM
Old 04-05-2019
Hello malaika,

I would like to bring up a few things to consider:-
  • How do you know that the file is complete before you try to split it? Perhaps it gets transferred as filename.partial then renamed to filename when complete or there is a flag file such as filename.OKAY created in the next step
  • Why break up the file to send it and reassemble? Have you considered rsync? If there is an interruption it can restart to catch up. You might be able to set it up to transfer then remove the original. Trial this with small files though Smilie

Does this help/hinder/miss the point?




Kind regards,
Robin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to combine to flat files which are there in remote server ?

:mad: I have to write a script in informatica, which is used to combine two remote flat files (3 Replies)
Discussion started by: srinivasaraju.m
3 Replies

2. Shell Programming and Scripting

Splitting input files into multiple files through AWK command

Hi, I needs to split *.txt files from single directory depends on the some mutltiple input values. i have wrote the code like below for file in *.txt do grep -i -h "value1|value2" $file > $file; done. My requirment is more input values needs to be given in grep; let us say 50... (3 Replies)
Discussion started by: arund_01
3 Replies

3. Shell Programming and Scripting

Shell script to transfer the files from source to target server.

I need to write a shell script to transfer the files every hour from source - target server. The cron job should be running every hour and shouldn't copy already copied files to the remote server ? I was able to write intial script but not able to get the logic for (in the next run it should... (12 Replies)
Discussion started by: radhirk
12 Replies

4. Shell Programming and Scripting

copy files from remote server (B) to target server (A)?

Hi All, what is the comand to log off the remote server? I have 2 servers A, B. I need to find all files older than 7 days on server B and copy over to server A. My logic is: login the remote server: ================= ssh hostB cd /data/test find . -mtime -7 -ls | awk '{print... (4 Replies)
Discussion started by: Beginer0705
4 Replies

5. Shell Programming and Scripting

scp files from other server with check

Hi all, I am new to this forum,and it has been really a great pleasure to be a part of this forum:) well,i m trying to write a shell script where i m transfering a set of files from other server to my own server. for this i m using scp... (1 Reply)
Discussion started by: prasson_ibm
1 Replies

6. Shell Programming and Scripting

script for Copying files from one server to another using scp

Hi Scripting experts, I am new to the unix scripting. Please help me out for solving the condition given below I am trying to develop a script for Copying files which are getting generated in server A to server B using scp. In serverA files are generating as for eg abc1.txt, abc2.txt,... (5 Replies)
Discussion started by: rohithji
5 Replies

7. Shell Programming and Scripting

combine multiple files by column into one files already sorted!

I have multiple files; each file contains a certain data in a column view simply i want to combine all those files into one file in columns example file1: a b c d file 2: 1 2 3 4 file 3: G (4 Replies)
Discussion started by: ahmedamro
4 Replies

8. Shell Programming and Scripting

scp files that are 3 days older from remote server-

hello, i am trying to get a list of files to be scped from the remote server by running the below in my local unix server ( note - there is a passwordless connectivity setup made between the local and remote server) and, we use KSH. --- ssh $scp_host "find /a/b/c/*/ -iname "$remote_file"" >... (4 Replies)
Discussion started by: billpeter3010
4 Replies

9. Shell Programming and Scripting

Need shell script to compare directories and delete files on target server

Hello, I need help in writing the shell script for below mentioned case. There are 2 servers(server A, server B). A cronjob syncs files between these 2 servers. Existing script is copying files from A to B. This is done using the command rsync. However, the files are not deleted... (2 Replies)
Discussion started by: SravaniVedam11
2 Replies

10. UNIX for Beginners Questions & Answers

scp of multiple files to remote server

Hello, I would like to scp multiple files to a remote server that requires a password for the process to be completed. I have 30 folders (x_1, x_2 ... x_30), each containing 25 files. What I want to do is scp 1 out of the 25 files (file called bvals) for all my folders to a remote server and... (3 Replies)
Discussion started by: nasia.m
3 Replies
xferlog(4)							   File Formats 							xferlog(4)

NAME
xferlog - FTP Server transfer log file SYNOPSIS
/var/log/xferlog DESCRIPTION
The xferlog file contains transfer logging information from the FTP Server, in.ftpd(1M). You can use the logfile capability to change the location of the log file. See ftpaccess(4). By default, each server entry is composed of a single line of the following form. All fields are separated by spaces. current-time transfer-time remote-host bytes-transferred filename transfer-type special-action-flag direction access-mode username service-name authentication-method authenticated-user-id completion-status The xferlog format capability can be used to customize the transfer log file format used. In addition to those in the default format, it also supports chroot-filename, file-size, and restart-offset fields. See ftpaccess(4). The fields are defined as follows: current-time The current local time in the form DDD MMM dd hh:mm:ss YYYY, where: DDD Is the day of the week MMM Is the month dd Is the day of the month hh Is the hour mm Is the minutes ss Is the seconds YYYY Is the year transfer-time The total time in seconds for the transfer remote-host The remote host name bytes-transferred The number of bytes transferred filename The absolute pathname of the transferred file transfer-type A single character indicating the type of transfer: a Indicates an ascii transfer b Indicates a binary transfer special-action-flag One or more single character flags that indicate any special action taken. The special-action-flag can have one of more of the following values: C File was compressed U File was uncompressed T File was archived, for example, by using tar(1) _ (underbNo)action was taken. direction The direction of the transfer. direction can have one of the following values: o Outgoing i Incoming access-mode The method by which the user is logged in. access-mode can have one of the following values: a For an anonymous user. g For a passworded guest user. See the description of the guestgroup capability in ftpaccess(4). r For a real, locally authenticated user username The local username, or if anonymous, the ID string given service-name The name of the service invoked, usually ftp authentication-method The method of authentication used. authentication-method can have one of the following values: 0 None 1 RFC 931 authentication authenticated-user-id The user ID returned by the authentication method. A * is used if an authenticated user ID is not available. completion-status A single character indicating the status of the transfer. completion-status can have one of the following values: c Indicates complete transfer i Indicates incomplete transfer chroot-filename The pathname of the transferred file relative to the chroot point. This will differ from the filename field for anonymous and guest users. file-size The size, in bytes, of the file on the server. restart-offset The offset, in bytes, at which the file transfer was restarted (0 when no restart offset was specified). FILES
/var/log/xferlog ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpr | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
tar(1), in.ftpd(1M), ftpaccess(4), ftpconversions(4), attributes(5) StJohns, Mike. RFC 931, Authentication Server. Network Working Group. January 1985. SunOS 5.10 25 Apr 2003 xferlog(4)
All times are GMT -4. The time now is 04:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy