Sponsored Content
Full Discussion: file name query
Top Forums Shell Programming and Scripting file name query Post 302101874 by Dastard on Friday 5th of January 2007 05:39:56 AM
Old 01-05-2007
tried this

rsh node1 tail -20 /var/opt/fds/statistics/FSC-InapInterface_2.0_A_1-'date +%Y-%m-%d'-2-0000.stat >> node1.txt


aint working Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

query file name

Experts, New Year Greetings to everyone! Is there a way I can query the filename from the file itself? I am writing a bunch of similar 'csh' scripts, which differ by the file name and same difference is inside the script. e.g. script1.run.csh .... set vrbl = script1 ....... (3 Replies)
Discussion started by: sumitgarg
3 Replies

2. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

3. Shell Programming and Scripting

Query on File checking

Hi All, I am a newbie to Shell programming and stuck with the folllowing issue: Here is the code: #! /bin/sh if ; then echo "Checking if the file is found or not" fi On running, I get the following error: spk265@linax1$ ./shell ./sample/samplenew ./shell: line 3: I... (3 Replies)
Discussion started by: sh_kk
3 Replies

4. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

5. Infrastructure Monitoring

Log file query

Hello all, I am trying to query a log file based on 5 conditions; Information, Warning, Error or Warning, Error or Information, Warning, Error. Sample of the log file: 2010-04-25 12:47:06 Information: Network-Socket(1) process started. 2010-04-25 12:47:09 Information: SNMP-Socket(1-1)... (4 Replies)
Discussion started by: LAVco
4 Replies

6. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

7. Shell Programming and Scripting

Query about opening the file

I have a query regard the opening of the file. Suppose I have opened the file Let's say view filename And then I found that I have to do some changes in that, but I do not want to close the file Then how I can change the permission of the file from read mode to write mode Regards Adi (6 Replies)
Discussion started by: adisky123
6 Replies

8. UNIX for Dummies Questions & Answers

File grep quick query

Hi Experts, I need some suggestion on file grep. I am trying to find multiple pattern with the file grep as below grep "2013" trace.log | grep -f pattern.cfg -i > $LOG if ; then mail -s "Exception" "sample@abc.com" < $LOG fi Is it possible to obtain what pattern I got in the... (5 Replies)
Discussion started by: senthil.ak
5 Replies

9. Shell Programming and Scripting

Renaming file - Query

Hi, I have file with format abcd.gz.20151011.1 , i need to rename as abcd.gz.20151011.we can use move command for one file. How to change multiple files. (3 Replies)
Discussion started by: nag_sathi
3 Replies

10. Shell Programming and Scripting

Replacement Query in a file

Hi All, Please can you help me with below, i have a file with records ( eg of one record below) Record R1 - The field separtaor between records is | (Pipe) |123|Mukesh\r\n|Vivek"sharma| Now i want to do the following for each record in the file if there is any field ( lets say field... (3 Replies)
Discussion started by: mad_man12
3 Replies
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)
All times are GMT -4. The time now is 02:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy