Hello,
Currently we are having different linux servers (for example: let's assume audio server, video server and text server) to handle requests from outside users. Suppose the outside users in different LAN (Local Area Network), other than the servers. For example user is in 20 series LAN and... (5 Replies)
Hi ,
I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory.
how to write this in a simple script, I have made my code complex
if ; then
taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Hi All,
I have some files in my directory, and i want to pull all data using for loop....I am using following code but getting error..!
for file in {file1, file2, file3, ..... filen}
do
L="$(tail -1 $file)";NUM=${L%%|*};DAT=${L##*|}
echo $NUM>>filedata.txt
done
Error:
tail:... (3 Replies)
Hi,
I have a directory /home/datasets/ which contains a bunch (720) of subdirectories called hour_1/ hour_2/ etc..etc.. in each of these there is a single text file called (hour_1.txt in hour_1/ , hour_2.txt for hour_2/ etc..etc..) and i would like to do some text processing in them.
Each of... (20 Replies)
Hi,
Very unfamiliar with unix/linux stuff. Our admin is on vacation so, need help very quickly.
I have directories (eg 40001, 40002, etc) that each have one subdirectory (01).
Each subdir 01 has multiple subdirs (001, 002, 003, etc). They are same in each dir.
I need to keep the top and... (7 Replies)
Hi all,
Here is an outline of the problem:
#variable declared at start of script
x=0;
#a function that increments x by 1 every 10 seconds
incrementX(){
increments x every 10 seconds;
}
#i want this to output the value of x every second. The problem is that x is always reported... (3 Replies)
Hi,
GetName()
{
if
then
echo " Please enter the name: "
read Name
tempvar=0
while read line
do
if
then
tempvar=`expr $tempvar + 1`
echo $tempvar
... (10 Replies)
I'm new to Linux and trying to port
a c++ program from windows.
what I'm trying to do is copy a file to a directory off
the root of the drive
First off the program is located and running from
Drive:\Base\Web\Today\Program.exe
And trying to copy to:
Drive:\Base\cpics
windows... (10 Replies)
Hello,
I am under Ubuntu 18.04 Bionic.
I have one shell script run.sh (which is out of my topic) to run files under multiple directories and one file to control all processes running under those directories (control.sh).
I set a cronjob task to check each of them with two minutes of intervals.... (3 Replies)
Discussion started by: baris35
3 Replies
LEARN ABOUT HPUX
cmsync
cmsync(1m)cmsync(1m)NAME
cmsync - Synchronize files or directories on multiple Serviceguard nodes.
SYNOPSIS
cmsync [-rv] [[-n node_name]...] [src_node:]src_file [...]
DESCRIPTION
cmsync copies files and/or directories to multiple Serviceguard nodes.
cmsync is limited in several ways. cmsync is best suited for situations where other remote copy facilities are not available. For a more
full featured tool for copying files between Serviceguard nodes, see ccp(1m) provided by Distributed Systems Administration Utilities.
To use this command, the local user must have the root access role on each of the involved nodes. For more information on Serviceguard
access control policies, see the manual, Managing Serviceguard.
To use the cmsync command without specifying -n options, the local node must be configured into a Serviceguard cluster. If no -n options
are specified, the files will be copied to all available nodes in the cluster.
Paths may be relative to the current working directory or specified absolutely. Copies between two remote hosts are permitted.
If a file or directory already exists on a destination node, the destination node's copy will be overwritten with no prompting.
The cmsync command is not suited for large files or large numbers of files and may result in a heavy load on the command and Serviceguard
daemons. Other tools such as ccp should be considered for these purposes.
Options And Arguments
-r Recursively copy entire directories.
-v Verbose output will be displayed.
-n node_name
Serviceguard node to copy file to. If no -n options are specified, default is to copy to all nodes within the configured clus-
ter.
src_node
Serviceguard node to retrieve the file from. Defaults to the local node.
src_file
Path to source file on src_node.
RETURN VALUE
cmsync returns the following values:
0 Successful completion.
1 Command failed.
EXAMPLES
Copy the local file /etc/hosts to remote nodes node1 and node2
cmsync -n node1 -n node2 /etc/hosts
Distribute the remote file /etc/passwd to all nodes in the cluster.
cmsync node1:/etc/passwd
AUTHOR
cmsync was developed by HP.
SEE ALSO ccp(1m), cmcp(1m), cmexec(1m), cmdo(1m), cmquerycl(1m), cmviewcl(1m)
Requires Optional Serviceguard Software cmsync(1m)