Sponsored Content
Top Forums Shell Programming and Scripting Change the naming convention of the output file Post 302970854 by Yoda on Tuesday 12th of April 2016 01:51:25 PM
Old 04-12-2016
I am confused, you said below is the script scheduled in cron for nmon:-
Code:
[root@servername nmonlog]# crontab -l | grep -i nmon
10 00 * * * /usr/bin/nmon_x86 -ft -s 60 -c 1440 -m /vol/nmonlog > /dev/null 2>&1

But then you posted the code for another script which seems to be not related:-
Code:
[root@servername nmonlog]# crontab -l | grep -i /vol/nmonlog/Unix_Stat
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /vol/nmonlog/Unix_Statistics.sh >/dev/null 2>&1 #CPU,Memory & Filesystem Monitoring

 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Naming convention for Libraries..

Hi All, I need to know standard naming convention for Unix libraries (including all flavours of unix)..As I have gone through some sites and found out The UNIX convention for naming of libraries is lib<name>.so.<major>.<minor>.<revision> so is it statndard . also does it change... (0 Replies)
Discussion started by: rkshukla14
0 Replies

2. Emergency UNIX and Linux Support

Read file and change a 0 to a 1 in output

<key>ExcludeSimpleHostnames</key> <integer>0</integer> <key>FTPPassive</key> Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key. I got this output code... (8 Replies)
Discussion started by: glev2005
8 Replies

3. Shell Programming and Scripting

Change file output format

I have a file which has following contents usmtnz-dinfsi19 62 61 18400 18800 99.7 usmtnz-dinfsi19 62 61 18400 18800 99.7 i want the o/p to be like date (7 Replies)
Discussion started by: fugitive
7 Replies

4. Shell Programming and Scripting

Naming convention script

OK, so a quick background: I am a sys admin for a 1:1 deployment in academia with Macbooks, totaling around 6,000. Macbooks get shifted around from building to building and go to and from the repair center if hardware repair is needed. Often, some machines will get moved from one building to... (8 Replies)
Discussion started by: tlarkin
8 Replies

5. Hardware

Motherboards naming convention

For the selection of motherboards, is there any naming convention in the type numbers? There is usually a brand name and sometimes a version name, but more essential details like form factor, SATA speed and maximum amount of RAM is never given. Is there a reason for that? Is there any background... (2 Replies)
Discussion started by: figaro
2 Replies

6. Shell Programming and Scripting

Concatenate files to one file with naming convention

Hi , i have below files in wrk folder. file names are 1102090001.CLT 1102090003.CLT 1102100019.CLT 1102100020.CLT the above files are concatenate to one file but that concatenate file name must be same naming convention. (date +%y%m%d)and 0001 count. example : concatenate file... (9 Replies)
Discussion started by: krbala1985
9 Replies

7. Fedora

Basic question regarding rpm naming convention.

Hi Guys, Where would i find the list of distribution codes. For example. samba-32bit-3.4.2 -1.1.3.1.x8664.rpm In above rpm file it is indicated that its release is 1.1.3.1 . The rpm is meant to be run for opensuse. Where would i get the linking of release number and distribution. ... (2 Replies)
Discussion started by: pinga123
2 Replies

8. UNIX for Dummies Questions & Answers

Check file name against convention

I need this script to check if the first 3 letters of the file name are capital. find . -type f -name *001.dpx -exec find {} ! -name ???_???_???_v??.??????.dpx \; >> ./Bad_FileNames.txt Currently it finds the first frame of the sequence and tests that against the naming convention. It works... (6 Replies)
Discussion started by: scribling
6 Replies

9. Red Hat

File System Naming Convention

Hi, I am installing a new RHEL 5 application server containing JBOSS along with other specific 3rd party applications. I know that this usually gets installed in /opt but I was thinking of installing these on a new separtate lv / file system instead. i.e. /<my_new_FS_name> rather than... (6 Replies)
Discussion started by: Duffs22
6 Replies

10. Shell Programming and Scripting

Naming output files based on variable parameters and input filenames

Hello, I have a series of files in sub-directories that I want to loop through, process and name according to the input filename and the various parameters I'm using to process the files. I have a number of each, for example file names like AG005574, AG004788, AG003854 and parameter values like... (2 Replies)
Discussion started by: bdeads
2 Replies
nondcesvc(4)															      nondcesvc(4)

NAME
nondcesvc - file for dceping(8) that lists non-DCE services. DESCRIPTION
dceping will ping services named in nondcesvc. Supported naming conventions for this file are: o CDS Name. Example entry: /.:/hosts/foo/someService NAMESPACE PROMPT /.:/hosts/foo/someService NAMESPACE NOPROMPT You can find CDS namespace entries by using the cdsbrowser(8) command. o RPC String Binding. Example entry: ncacn_ip_tcp:foo.entity.company.com[1755] STRING_BINDING You can obtain string bindings from the endpoint map maintained by rpcd. Use the command: rpccp show mappings. Note that the host name (foo.entity.company.com in the example) can be replaced with the IP address. o RPC Service Interface ID. Example entry: someOtherService INTERFACE_ID hostname When using this form of name, also include the same entry in the wellknownif file. Note in the examples above that NAMESPACE, STRING_BINDING, and INTERFACE_ID are literal strings that identify which naming convention is being used. PROMPT is a literal string that will associate a login context with the NAMESPACE Entry. This keyword will cause dceping to prompt the user for a principal and password that has sufficient rights to access the Entry. NOPROMPT does not cause prompting. PROMPT and NOPROMPT are supported by the NAMESPACE naming convention only. Environment Variables are supported in the Service Name. Use of these is similar to environment variable usage in the shell with the exception that the variable must reference an absolute name, and not another environment variable. Use of environment variables is sup- ported in all naming conventions. o Environment Variable Name. Example entry: /.:/hosts/foo/$SOME_SERVICE NAMESPACE PROMPT /.:/hosts/foo/bankServer$(CITY)$(STATE) NAMESPACE NOPROMPT $(SECD_STRING_BINDING) STRING_BINDING $(SECD_INTERFACE_ID) INTERFACE_ID hostname If you do not know the names of services that you want to ping before dceping is run, and/or you would like to determine such names at run- time by providing your own function, you may do so through an entry of the following form in nondcesvc: full_path_name_of_your_executable BUILD_SVCNAMES You specify your function's full path name in full_path_name_of_your_executable followed by the literal string BUILD_SVCNAMES. Your func- tion should generate, on its stdout, a file identical to the nondcesvc file with one difference. The output of the executable should not have any BUILD_SVCNAMES entry. It can however have any number of NAMESPACE, STRING_BINDING or INTERFACE_ID types of entries. Blank lines or lines beginning with # are ignored. You can use either spaces or tabs to separate items in a line. The string, endNonDCESvc, must occur in the last line of the file as an end of file indicator. FILE
/opt/dcelocal/hpadmin/etc/nondcesvc (for HP-UX version 9.x) /etc/opt/dce/hpadmin/etc/nondcesvc (for HP-UX version 10.x) SEE ALSO
dceping(8), wellknownif(4), rpccp(8), cdsbrowser(8) HP DCE
nondcesvc(4)
All times are GMT -4. The time now is 04:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy