That's right but I figured that since you were only testing for zero occurences, that did not matter. If you need the count then you could try something like this:
Hi,
I trying to sort information in a file by making count for every object. For example:
A
B
A
D
A
B
C
i would like to sort out count for each object (A's, B's and etc) but in actual case i dont know the object but i know the position ofthe object. do i need to use array as well? Any... (2 Replies)
Hi All,
Please i need to know the difference between grep, egrep & grep -i when used to serach through a file.
My platform is SunOS 5.9 & i'm using the korn shell.
Regards,
- divroro12 - (2 Replies)
Dear All,
Please advice about this issue.
when i run this line in a script if && || && || && if i enter $x = test3 and $y = test1 the If condition apply while it should not
Best Regards (2 Replies)
Hi
I am having a 'grep' headache
Here is the contents of my file:
(PBZ,CP,(((ME,PBZ,BtM),ON),((ME,((PBZ,DG),(CW9,PG11))),CW9,TS2,RT1)))
I would like to count out how many times 'PBZ' occurs and then place that number in the line above
3... (8 Replies)
Hello people!
I would like to create one script following this stage
I have one directory with 100 files
File001
File002
...
File100
(This is the format of content of the 100 files)
2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0
then I have one... (0 Replies)
I try to count number of lines of a data.txt file and then if number of lines is greater than 1 then email me the file.
I could not find what is wrong with my code, hope you can point out the mistake i made
#! /bin/ksh
count =`cat /from/file/data.txt | wc -l`
if ]; then
mailx -s... (4 Replies)
KSH
HP-SOL-Lin
Cannot use xAWK
I have several strings that are quite long and i want to break them down into smaller substrings.
What I have
String = "word1 word2 word3 word4 .....wordx"
What I want
String1="word1 word2"
String2="word 3 word4"
String3="word4 word5"
Stringx="wordx... (5 Replies)
Hi All.
I'm trying to count with command cat Count.log |sort -t 1 | uniq -c
Input File.
Back-end Invalid Id Password
Back-end Invalid Id Password
Success
Success
Success
Back-end Invalid Id Password
Back-end User state is invalid
Back-end User state is invalid
Success... (9 Replies)
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
LEARN ABOUT OPENSOLARIS
imqkeytool
imqkeytool(1M) System Administration Commands imqkeytool(1M)NAME
imqkeytool - generate a self-signed certificate for secure communication
SYNOPSIS
/usr/bin/imqkeytool [-broker] [-servlet keystore_location]
/usr/bin/imqkeytool -h
DESCRIPTION
The imqkeytool utility generates a self-signed certificate for secure communication. The certificate can be used by a broker instance to
establish a secure connection with a client, or by a Message Queue-supplied HTTPS servlet to establish a secure connection with a broker
instance. An HTTPS servlet is an SSL-enabled varient of the HyperText Transfer Protocol that establishes a secure connection with a broker
instance.
Without an option, imqkeytool generates a self-signed certificate for a broker instance.
imqkeytool uses command line options to specify whether the certificate is used by a broker instance or by a servlet.
OPTIONS
The following options are supported:
-broker Generate a self-signed certificate for the broker and places it in the Message Queue keystore. All broker
instances running on a system must use the same certificate.
-h Display usage help. Do not execute anything else on the command line.
-servlet keystore_location Generate a self-signed certificate for an HTTPS servlet and places it in keystore_location.
keystore_location refers to the location of the keystore. You should move this keystore to a location where
it is accessible and readable by the Message Queue HTTPS servlet to establish a secure connection with a bro-
ker.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of this command:
IMQ_JAVAHOME Specify the Java 2 compatible runtime. When this environment variable is not set it defaults to /usr/j2se.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/etc/imq/keystore Contains Message Queue keystore in which imqkeytool stores a self-signed certificate for brokers.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWiqu |
+-----------------------------+-----------------------------+
SEE ALSO imqadmin(1M), imqbrokerd(1M), imqcmd(1M), imqdbmgr(1M), imqobjmgr(1M), imqusermgr(1M), attributes(5)
Sun Java System Message Queue Administrator's Guide
SunOS 5.11 11 Mar 2004 imqkeytool(1M)