10-28-2010
For what purpose? What are you trying to do? i.e. the expected output?
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i have a simple question:
in hpux 11i;
this cmd :
cat mailtest |grep sekar >test1
gives the output file with the name test1.
i want to remove the line which contains the "sekar" and put the result in the new file....
what is the command for that?.. (2 Replies)
Discussion started by: sekar sundaram
2 Replies
2. Shell Programming and Scripting
i have to grep a file which has contents like
/Source/value/valuefile/readme.txt DefaultVersion:=1.7
I have to grep this file with "/Source/value/valuefile/readme.txt" and cut the corresponding value "1.7" from the same line
i tried grep and cut but not working. (1 Reply)
Discussion started by: codeman007
1 Replies
3. Shell Programming and Scripting
Hi
Can anyone what I am doing wrong while using cut command.
for f in *.log
do
logfilename=$f
Log "Log file Name: $logfilename"
logfile1=`basename $logfilename .log`
flength=${#logfile1}
Log "file length $flength"
from_length=$(($flength - 15))
Log "from... (2 Replies)
Discussion started by: dgmm
2 Replies
4. UNIX for Beginners Questions & Answers
I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies
5. Shell Programming and Scripting
I am using : << cut / cut to comment out block of code.
Works fine on few lines of script, then it gives me this cryptic error when I try to comment out about 80 lines.
The "warning " is at last line of script.
done < results
169 echo "END read all positioning parameters"
170... (8 Replies)
Discussion started by: annacreek
8 Replies
6. Shell Programming and Scripting
Hello All,
While searching for the question, I found some answers but my implementation is not giving expected output.
I have two files; one is sourcefile, other is named template.
What I want to do is to search each line in template, when found all columns, cut the matching line from source... (4 Replies)
Discussion started by: baris35
4 Replies
LEARN ABOUT PHP
openssl_x509_checkpurpose
OPENSSL_X509_CHECKPURPOSE(3) 1 OPENSSL_X509_CHECKPURPOSE(3)
openssl_x509_checkpurpose - Verifies if a certificate can be used for a particular purpose
SYNOPSIS
int openssl_x509_checkpurpose (mixed $x509cert, int $purpose, [array $cainfo = array()], [string $untrustedfile])
DESCRIPTION
openssl_x509_checkpurpose(3) examines a certificate to see if it can be used for the specified $purpose.
PARAMETERS
o $x509cert
- The examined certificate.
o $purpose
-
openssl_x509_checkpurpose(3) purposes
+---------------------------+---------------------------------------------------+
| Constant | |
| | |
| | Description |
| | |
+---------------------------+---------------------------------------------------+
| X509_PURPOSE_SSL_CLIENT | |
| | |
| | Can the certificate be used for the client side |
| | of an SSL connection? |
| | |
| X509_PURPOSE_SSL_SERVER | |
| | |
| | Can the certificate be used for the server side |
| | of an SSL connection? |
| | |
|X509_PURPOSE_NS_SSL_SERVER | |
| | |
| | Can the cert be used for Netscape SSL server? |
| | |
| X509_PURPOSE_SMIME_SIGN | |
| | |
| | Can the cert be used to sign S/MIME email? |
| | |
|X509_PURPOSE_SMIME_ENCRYPT | |
| | |
| | Can the cert be used to encrypt S/MIME email? |
| | |
| X509_PURPOSE_CRL_SIGN | |
| | |
| | Can the cert be used to sign a certificate revo- |
| | cation list (CRL)? |
| | |
| X509_PURPOSE_ANY | |
| | |
| | Can the cert be used for Any/All purposes? |
| | |
+---------------------------+---------------------------------------------------+
These options are not bitfields - you may specify one only!
o $cainfo
-$cainfo should be an array of trusted CA files/dirs as described in Certificate Verification.
o $untrustedfile
- If specified, this should be the name of a PEM encoded file holding certificates that can be used to help verify the certifi-
cate, although no trust is placed in the certificates that come from that file.
RETURN VALUES
Returns TRUE if the certificate can be used for the intended purpose, FALSE if it cannot, or -1 on error.
PHP Documentation Group OPENSSL_X509_CHECKPURPOSE(3)