9 More Discussions You Might Find Interesting
I am trying to store output of python command in variable. Could you please help how I can do that ?
For example I am executing the following command - "CentOS" in server_desc
The output would be True or False
I would like to store the output in a variable say outPut and use condition... (4 Replies)
Discussion started by: atanubanerji
2. Post Here to Contact Site Administrators and Moderators
The current description of Shell Programming and Scripting has:
Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.
Perl, php are there. Is it possible to add PYTHON there too? (3 Replies)
Discussion started by: cola
3. Shell Programming and Scripting
I need to get the version of python installed and store it in a variable for later use. Whereas it is printing on the console instead of storing to variable. I am able to store output of ls command in a variable. Please check the below code :
root@myhost:/volumes/srini# cat... (4 Replies)
Discussion started by: srinivasan.neel
4. Shell Programming and Scripting
For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if (os.path.isfile(FILE_PATH) and (os.stat(FILE_PATH).st_mode & 0777) == 0777):"
But the problem... (1 Reply)
Discussion started by: arjun_arippa
5. UNIX for Advanced & Expert Users
I have a file called "test.txt" and it looks like this
now, i want to run a command and its output will be like this
my requirement is, i want to add the command output to "test.txt" as like below
y ... (1 Reply)
Discussion started by: siva kumar
6. Shell Programming and Scripting
Output of "ps -o etime,time,pcpu,pmem,fname -C sbd-java"
command is -
Elapsed Time %cpu %MEM COMMAND
02:14:03 00:03:28 2.5 6.3 sbd-java
Can anyone tell me, how to store the the value 2.5 in a variable?
When I say echo $X where x is a variable then... (4 Replies)
Discussion started by: pspriyanka
7. Shell Programming and Scripting
I have a script in which i need to run a command like "/opt/dell/srvadmin/sbin/omreport about" and output will be something like
Version : 6.3.0
Copyright : Copyright (C) xxx Inc. 1995-2010 All rights reserved.
Company : xxx Inc.
In this i need to save the version... (13 Replies)
Discussion started by: Renjesh
Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
>>> import subprocess
I'm hoping so as I hate scrolling and love how less works with... (0 Replies)
Discussion started by: Narnie
9. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
yhsm-decrypt-aead(1) General Commands Manual yhsm-decrypt-aead(1)
yhsm-decrypt-aead - Decrypt AEADs (with secrets for YubiKeys)
yhsm-decrypt-aead [options] --aes-key KEY file-or-dir [...]
Decrypt AEADs generated using a YubiHSM. NOTE that this requires knowledge of the AES key used in the YubiHSM.
After a number of YubiKey secrets have been generated using yhsm-generate-keys(1) , this tool can decrypt them and produce a CSV file
usable to personalize corresponding YubiKeys.
Enable verbose operation.
Enable debug printout.
Select output format (raw or yubikey-csv).
Prefix any output with the input filename.
Key handle used when generated AEADs, if not stored in the AEAD file (AEAD generated with python-pyhsm 1.0.3 or lower).
AES key used to generate the AEADs.
Report python-pyhsm/yhsm-decrypt-aead bugs in the issue tracker <https://github.com/Yubico/python-pyhsm/issues/>
The python-pyhsm home page <https://github.com/Yubico/python-pyhsm/>
YubiHSMs and YubiKeys can be obtained from Yubico <http://www.yubico.com/>.
python-pyhsm June 2012 yhsm-decrypt-aead(1)