07-02-2014
I can just use the bash script then.
---------- Post updated at 07:51 AM ---------- Previous update was at 07:49 AM ----------
I also figured that rsync does create three processes by design.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi ,
can anyone help me by saying why we use xargs.. is it acing like a place holder..?
thanks,
Krips. (3 Replies)
Discussion started by: kripssmart
3 Replies
2. UNIX for Advanced & Expert Users
I discovered that GNU's xargs has a -P option to allow its processes to run in parallel. Great! Is this a GNU thing, or is it supported by other platforms as well? (4 Replies)
Discussion started by: otheus
4 Replies
3. Shell Programming and Scripting
hi
i just want to know that how do we use xargs command to find files which are greater than specified memory
in a given directory (6 Replies)
Discussion started by: sumit the cool
6 Replies
4. Shell Programming and Scripting
Hi,
I have a requirement to RCP the files from remote server to local server.
Also the RCP has to run in parallel. However using 'xargs' retrives 2 file names during each loop. How do we restrict to only one file name using xargs and loop till remaining files.
I use the below code for... (2 Replies)
Discussion started by: senthil3d
2 Replies
5. Shell Programming and Scripting
hi
Could any one please tell me the option using which we can run multiple commands using xargs
I have list of files, I want to run dos2unix and chmod at one shot on them
I tried google n searched man pages but couldnt really find the solution , please help
right now im doing this
ls... (4 Replies)
Discussion started by: sunilmenhdiratt
4 Replies
6. Shell Programming and Scripting
Dear all ,
any suggest on xargs to combine from (1.txt and 2.txt) to output.txt ?
thanks a lot.
1.txt
0123 BUM-5M BUM-5M 93490481 63839
0124 BUM-5M BUM-5M 112112 ... (3 Replies)
Discussion started by: samoptimus
3 Replies
7. Shell Programming and Scripting
I have dir with many files ( close to 4M ) .
$ ls -la
total 76392
drwxr-xr-x 10 oracle dba 512 Jun 06 14:39 .
drwxr-xr-x 11 oracle dba 512 Dec 20 13:21 ..
drwxr-xr-x 2 oracle dba 39074816 Jun 15 14:07 ad
I am trying to delete them using... (8 Replies)
Discussion started by: talashil
8 Replies
8. UNIX for Dummies Questions & Answers
Hi,
can anyone tell me in detail ?
what the following do in detail ?
I am trying to get a largest number in a list
Thanks
Tao
LARGEST=$(echo $* | xargs -n1 | sort -nr | tail -1) (3 Replies)
Discussion started by: ccp
3 Replies
9. Shell Programming and Scripting
I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location
I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies
10. Shell Programming and Scripting
Hi all,
I have a script issue I can't seem to work out.
In a directory I have several folders and I want to send just the sapdata1 to sapdata14 folders and their contents but not sapdataXX/.snapshot
the script is:
#!/bin/bash
# SETUP OPTIONS
export SRCDIR="/scratch/doug/test/sapdata*"... (5 Replies)
Discussion started by: DougyC
5 Replies
LEARN ABOUT DEBIAN
ocf_heartbeat_rsyncd
OCF_HEARTBEAT_RSYNCD(7) OCF resource agents OCF_HEARTBEAT_RSYNCD(7)
NAME
ocf_heartbeat_rsyncd - Manages an rsync daemon
SYNOPSIS
rsyncd [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
This script manages rsync daemon
SUPPORTED PARAMETERS
binpath
The rsync binary path. For example, "/usr/bin/rsync" (optional, string, default rsync)
conffile
The rsync daemon configuration file name with full path. For example, "/etc/rsyncd.conf" (optional, string, default /etc/rsyncd.conf)
bwlimit
This option allows you to specify a maximum transfer rate in kilobytes per second. This option is most effective when using rsync with
large files (several megabytes and up). Due to the nature of rsync transfers, blocks of data are sent, then if rsync determines the
transfer was too fast, it will wait before sending the next data block. The result is an average transfer rate equaling the specified
limit. A value of zero specifies no limit. (optional, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 20s.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 20s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
EXAMPLE
The following is an example configuration for a rsyncd resource using the crm(8) shell:
primitive p_rsyncd ocf:heartbeat:rsyncd
op monitor depth="0" timeout="20s" interval="60s"
SEE ALSO
http://www.linux-ha.org/wiki/rsyncd_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_RSYNCD(7)