02-16-2009
Thank you. I think thats a good idea,although it'll end up creating 15 logs on the server each time i run the script, but i should be able to live with that.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have serverA and serverB and i have a folder with same name an location in both servers.... Now i want to compare files in folder(serverA) with folder (serverB) if there are files missing in folderB then copy those files from folder(serverA) to folder(serverB) (1 Reply)
Discussion started by: ashahzad
1 Replies
2. Web Development
okay i'm going to try to say this uber-simple:
I use dropbox (file-sync service). in order for dropbox sync files, they must be its children eg. somewhere under /home/jzacsh/Dropbox].
I want to now use it to keep my development files in sync across my machines:
easy: just move my dev. files... (2 Replies)
Discussion started by: jzacsh
2 Replies
3. Shell Programming and Scripting
Hi,
I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below.
I will be using the config file as mentioned below:
(config.txt)
country:a,b
city:1,2
type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies
4. Shell Programming and Scripting
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
5. Shell Programming and Scripting
Hi ppl,
I am looking out for a shell script
a. That would have to login(from a main server) to say 16 servers individually.
b.On each server go to a particular location, check if a particular file is generated on a date(say every sunday it gets generated and i would be interested in the latest... (8 Replies)
Discussion started by: yohasini
8 Replies
6. Shell Programming and Scripting
Hi All,
I am new to Unix scripting, I have requirement where I need to read the key value pair from config file.
Sample Config file:
Key(File Pattern) Value(File Directory location)
test /Users/Bkumar/Downloads/testdir
prod ... (1 Reply)
Discussion started by: sbpkumar7
1 Replies
7. Shell Programming and Scripting
Hi all,
This is my situation. First thing is I cannot use rsync to accomplish this. I don't have on my systems and we can't put it on. I run HP-UX 11v3.
I have a list of files generated every day which tells me which files are not in sync with the rest of the servers.I want to ls -l the... (1 Reply)
Discussion started by: zixzix01
1 Replies
8. Shell Programming and Scripting
I have the following requirement;
I need to compare set of files in 2 different servers A and B.
Both have same sets of files and directory structure
First I need to move the files from Server A to server B
Compare the corresponding file in B server and see if it has modified (not... (1 Reply)
Discussion started by: vskr72
1 Replies
9. Shell Programming and Scripting
I need to compare same set of files in 2 different servers and generate a list (in STDOUT) which contain all the files that have changed. I don't have permission to create any temp files or folders in either servers.
- One option is to use ' if '. But for this I need to move file1 to one server... (1 Reply)
Discussion started by: vskr72
1 Replies
10. Shell Programming and Scripting
Hi
I am a beginner in UNIX and shell scripting and i have a requirement as stated below,
requirement
Login to a unix server 1
1. connect to a database mysql -uUsername -pPassword
2. Select a Schema : "Use Schemaname1"
3. query for a particular record
... (2 Replies)
Discussion started by: Hamdul
2 Replies
LEARN ABOUT HPUX
cmhaltcl
cmhaltcl(1m) cmhaltcl(1m)
NAME
cmhaltcl - halt a high availability cluster
SYNOPSIS
cmhaltcl [-f] [-v]
DESCRIPTION
cmhaltcl causes all nodes in a configured cluster to stop their cluster daemons, optionally halting all packages or applications in the
process.
To stop a cluster, a user must either be superuser(UID=0), or have an access policy of FULL_ADMIN allowed in the cluster configuration
file. See access policy in cmquerycl(1).
This command will halt all the daemons on all currently running systems. If the user only wants to shutdown a subset of daemons, the
cmhaltnode command should be used instead.
Options
cmhaltcl supports the following options:
-f Force the cluster to shutdown even if packages or group members are currently running. This will cause the packages and group
members to be halted. If a package halt fails, the cluster halt will also fail.
-v Verbose output will be displayed.
RETURN VALUE
cmhaltcl returns the following value:
0 Successful completion.
1 Command failed.
EXAMPLES
Halt the cluster daemons:
cmhaltcl
AUTHOR
cmhaltcl was developed by HP.
SEE ALSO
cmquerycl(1m), cmhaltnode(1m), cmruncl(1m), cmrunnode(1m), cmviewcl(1m).
Requires Optional Serviceguard Software cmhaltcl(1m)