Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Dear experts,
I'm trying to write a script to calculate the usage of Log Archive in a directory, so if it gets to a point where the directory size is 60%, then send out an FYI.. email. So if then it reaches to 80%, move the logs from that directory.
I have written the script as follow but... (10 Replies)
Hi
I am trying to figure out what the following line does, I work in ksh88:
] && LIST="$big $LIST"
Not sure what "-a" means in that case.
Thanks a lot for any advice -A (1 Reply)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi Guys,
I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below:
opath=/home/output
for i in N1 N2 N3 N4
do
echo $i
if
then
grep $i $opath/N5_CRAI > $opath/N5_$i.crai
chmod 777 $opath/N5_$i.crai
... (7 Replies)
Hello,
I am somewhat new to Linux/Unix. I am currently working on a shell script that is suppose to cat a file, grep the same file for a certain line, if that line is found save the file in a different location, else remove the file.
This is a rough example of what I want.
$Dating = False... (13 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT CENTOS
lcp_crtpollist
LCP_CRTPOLLIST(8) User Manuals LCP_CRTPOLLIST(8)NAME
lcp_crtpollist - create an Intel(R) TXT policy list
SYNOPSIS
lcp_crtpollist COMMAND [OPTION]
DESCRIPTION
lcp_crtpollist is used to create an Intel(R) TXT policy list.
OPTIONS --create
Create an TXT policy list. The following options are available:
--out file policy list file
[--ver version] version
[file]... policy element files
--sigh Sign an TXT policy list.
--pub key-file PEM file of public key
--out file policy list file
[--priv key-file] PEM file of private key
[--rev rev-ctr] revocation counter value
[--nosig] don't add SigBlock
--addsig
--sig file file containing signature (big-endian)
--out file policy list file
--show file
policy list file
--help Print out the help message.
--verbose
Enable verbose output; can be specified with any command.
EXAMPLES
Create policy list:
Assuming there have been two element file mle.elt and pconf.elt generated by lcp_crtpolelt(8) The following example can create an unsigned
policy list:
lcp_crtpollist --create --out list-unsig.lst mle.elt pconf.elt
Sign policy list:
Unsigned policy list can be signed by the command lcp_crtpollist(8) or openssl(1). The openssl(1) signing is supported for cases where the
signing environment is separate from the policy creation environment and the software allowed to run there is strictly controlled and
already supports openssl(1).
The following example uses openssl(1) to sign the list:
1 openssl rsa -pubout -in privkey.pem -out pubkey.pem
2 cp list-unsig.lst list-sig.lst
3 lcp_crtpollist --sigh --pub pubkey.pem --nosig --out list-sig.lst
4 openssl genrsa -out privkey.pem 2048
5 openssl dgst -sha1 -sign privkey.pem -out list.sig list-sig.lst
6 lcp_crtpollist --addsig --sig list.sig --out list-sig.lst
lcp_crtpollist can also be used to sigh a policy list. The following example are intended to be mutually exclusive with the preceding exam-
ple.
1 openssl genrsa -out privkey.pem 2048
2 openssl rsa -pubout -in privkey.pem -out pubkey.pem
3 cp list-unsig.lst list-sig.lst
4 lcp_crtpollist --sign --pub pubkey.pem --priv privkey.pem --out list-sig.lst
SEE ALSO lcp_crtpol2(8), lcp_crtpolelt(8), lcp_crtpollist(8), openssl(1).
tboot 2011-12-31 LCP_CRTPOLLIST(8)