Sponsored Content
Top Forums Shell Programming and Scripting Shell script to transfer the files from source to target server. Post 302277480 by radhirk on Friday 16th of January 2009 12:15:12 PM
Old 01-16-2009
Here I can move the files on remote server to a different directory.
But how come the local server knows that it shouldn't transfer already transferred files in the next hour run ? The files that gets created are 500 MB each time.

here how can I use the filter command ?


Thanks,
Radhika.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need a shell script to extract the files from source file and check whether those files existonserve

Hi, I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is # echo $0 -sh My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies

2. Shell Programming and Scripting

Reconcilations script between Source and Target

Hi, I am new to DB2 and in need of urgent help. Here we have about 100 queries (SQL) that have been manually executed to retrieve totals from different tables and post it to Excel spreadsheet. Is there any way I can create a shell script as a wrapper and execute these queries and create a... (5 Replies)
Discussion started by: bhaskar v
5 Replies

3. 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

4. Post Here to Contact Site Administrators and Moderators

How to count successfully copy files source to target location with check directory in Linux?

Hi guys...please any one help me .... how to copy files from source to target location if 5 files copied successfully out of 10 files then implement success=10 and if remaining 5 files not copied successfully then count error=5 how to implement this condition with in loop i need code linux... (0 Replies)
Discussion started by: sravanreddy
0 Replies

5. UNIX for Dummies Questions & Answers

How to count number files successfully copied from source to target location?

Hi Guys, how to count number of files successfully copied while coping files from source to destination path ex:10 files from source to target location copying if 8 files copied successfully then echo successfully copied=8 failure=2 files if two files get error to coping files... (2 Replies)
Discussion started by: sravanreddy
2 Replies

6. Shell Programming and Scripting

Help with script to transfer files from one server to another

Hi I have the following script: #!/bin/sh set -x touch -mt 201210040000 /tmp/ref1 touch -mt 201210042359 /tmp/ref2 find /fs1/bscsrtx/BSCS_ix/WORK/LOG -type f \( -newer /tmp/ref1 -a ! -newer /tmp/ref2 \) > file_lst scp $(< file_lst) root@10.100.48.76:/ano2005/fs1_2015/LOG/ but somehow its... (7 Replies)
Discussion started by: fretagi
7 Replies

7. Shell Programming and Scripting

Transfer files from one server with bash script

Hello to all, I want to copy from one server to another files of last 24 hours with size between 500MB and 2GB. The code below searches last files in 24 hours. find . -mtime -1 In order to copy faster I'd like to compress the files before copying them. How to automate the process of... (8 Replies)
Discussion started by: Ophiuchus
8 Replies

8. Shell Programming and Scripting

Shell scripting to transfer files from one to another server through ftps

Hi Guyz ,, I'm an ERP functional guy , I really need to automate a script which required a shell script but have a little knowledge in shell scripting. I need my generated files to be zipped first in one directory lets say (xyz) and then it needs to transfer another ftp server in... (3 Replies)
Discussion started by: Shogundion
3 Replies

9. Shell Programming and Scripting

Move multiple files 4rm Source to different target folders based on a series num in the file content

Dear Experts my scenario is as follows... I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims". All files are getting... (17 Replies)
Discussion started by: phani333
17 Replies

10. UNIX for Beginners Questions & Answers

Automate splitting of files , scp files as each split completes and combine files on target server

i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
uucico(8)						      System Manager's Manual							 uucico(8)

NAME
uucico - Transfers uucp command, data, and execute files to remote systems SYNOPSIS
uucico [-r role_number] [-x debug_level] [-s system_name] FLAGS
The role_numbers are 1 for server mode and 0 (zero) for client mode. The default is 0 (zero). If uucico is started manually, set this flag to 1. Displays debugging information on the screen of the local terminal. The valid range for debug_level is 0 to 9. The higher the number, the more detailed the final report. This flag is useful in correcting problems with the expect_send sequence in the Systems file. The name of the remote system. Use only when starting uucico manually. The system_name is supplied internally when uucico is started automatically. Note that system names must contain only ASCII characters. DESCRIPTION
The uucico daemon transports uucp Command (C.*), Data (D.*), and Execute (E.*) files created by the uucp and uux commands to a specified remote system. Both the local and remote systems run the uucico daemon, and the two daemons communicate with each other to complete trans- fer requests. The uucico daemon performs the following actions: Scans the spooling directory (/usr/spool/uucp/system_name) on the local system for trans- fer requests. Selects the device used for the communications connection after checking the /usr/lib/uucp/Devices file and the lock files in the /var/spool/locks directory. Places a call to the specified remote system using information in the Systems, Dialers, and Dialcodes files located in the /usr/lib/uucp directory. Performs the required login sequence specified in the Systems file. Checks permissions listed in the /usr/lib/uucp/Permissions file. Checks scheduling limits in the Maxuuscheds and Maxuuxqts files located in the /usr/lib/uucp directory. Runs all transfer requests from both the local and the remote system, placing the transferred files in the public directories (/usr/spool/uucppublic/*). Logs transfer requests and completions in files in the /usr/spool/uucp/.Log/uucico directory. Notifies speci- fied users of transfer requests. Usually the uucico daemon is called by the uucp and uux commands when needed, and is started periodically by the uucp scheduling daemon, uusched, which is started by the cron daemon. The uucico daemon can be started from the command line for debugging. The uucp command uutry also starts uucico with debugging turned on. In the case of a uux command request for the execution of a command on a remote system, the uucico daemon transfers the files, and the uuxqt daemon executes the command on the remote system. ENVIRONMENT VARIABLES
The following environment variables affect the execution of uucico: Specifies the flow control used on the connection. Permitted values are: HW (hardware), SW (software), HSW (hardware and software), and NONE. The uugetty on the remote system must also use the same flow con- trol. Specifies the amount of time (in seconds) for uucico to try to establish a connection before it times out. A value of 0 (zero) indicates an unlimited amount of time. EXAMPLES
To start the uucico daemon from the command line as a background process and contact the remote system hera, enter: /usr/lib/uucp/uucico -r1 -shera & To debug uucico connections, start the uucico daemon with the -x flag, and enter: /usr/lib/uucp/uucico -r1 -svenus -x9 FILES
Specifies the command path The uucp configuration files Contains lock files that prevent multiple uses of devices and multiple calls to systems Contains all the configuration files for uucp Contains information about available devices Contains dial-code abbreviations Speci- fies initial handshaking on a link Limits scheduled jobs Limits remote command executions Describes access permissions for remote systems Describes accessible remote systems Lists uucico daemon errors that uucp cannot correct Contains uucico daemon log files Lists the last time a remote system was contacted and the minimum time until the next retry Contains C.*, D.*, and E.* files to be transferred by the uucico daemon Command files Data files Execute files Contains files after transfer by the uucico daemon RELATED INFORMATION
Commands: cron(8), uucp(1), uustat(1), uutry(1), uuto(1), uux(1) delim off uucico(8)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy