06-19-2011
Im planning to use it also on windows. Also i noticed when using shell script it is slow in this task and try the python i im noticed a noticeable speed i dont know if im correct so thats why i want to use the python for this task.
Also an extra knowledge gain for me in pythons script.
Thanks for the responce.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Wrote this script to find the date x days before or after today. Is there any way that this script can be speeded up or otherwise improved?
#!/usr/bin/sh
check_done() {
if
then
daysofmth=31
elif
then
if
... (11 Replies)
Discussion started by: blowtorch
11 Replies
2. IP Networking
I am currently experiencing the file size being added to the file extension when transfering information from Command Line Client to a UNIX server. Does anyone know why this is happening and how do I stop the file size being added to the file extension.
Example: football.pqt.11108... (1 Reply)
Discussion started by: Skeeterrock
1 Replies
3. UNIX for Dummies Questions & Answers
Command ls -l *cpp lists all cpp program files in a directory. It shows the size of each file. Using a calculator to work out the total size of the cpp files would be very tedious.
Is there a way to get the total size from the command line? (5 Replies)
Discussion started by: resander
5 Replies
4. IP Networking
I have a 10Gbps network link connecting two machines A and B. I want to transfer 20GB data from A to B using TCP. With default setting, I can use 50% bandwidth. How to improve the throughput? Is there any way to make throughput as close to 10Gbps as possible? thanks~ :) (3 Replies)
Discussion started by: andrewust
3 Replies
5. Shell Programming and Scripting
Hi
I Have a directory and i have some files below
abc.txt
abc.gif
gtee.txt
ghod.pid
umni.log
unmi.tar
How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Discussion started by: kumar85shiv
2 Replies
6. Shell Programming and Scripting
I am working on requirement on spreadsheet in python scripting.
I have a spreadsheet containing cell values and with background color.
I am able to read the value value but unable to get the background color of that particular cell.
Actually my requirement is to read the cell value along... (1 Reply)
Discussion started by: giridhar276
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
8. Windows & DOS: Issues & Discussions
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Discussion started by: onenessboy
1 Replies
9. Programming
Hi all...
As you know I like making code backwards compatible for as many platforms as possible.
This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
LEARN ABOUT DEBIAN
yhsm-import-keys
yhsm-import-keys(1) General Commands Manual yhsm-import-keys(1)
NAME
yhsm-import-keys - import YubiKey secrets to YubiHSM
SYNOPSIS
yhsm-import-keys --key-handles ... [options]
DESCRIPTION
Read YubiKey token data from standard input, and store it in files or in the YubiHSM internal database.
The default mode is to turn each YubiKey secret into an AEAD (Authenticated Encryption with Associated Data) block that is stored in a file
on the host computer (one file per YubiKey). This enables validation of virtually unlimited numbers of YubiKey's OTPs.
If --internal-db is used, the YubiKey secret will be stored inside the YubiHSM, and complete validation (including counter management) will
be done inside the YubiHSM. The internal database is currently limited to 1024 entrys.
OPTIONS
-D, --device
device file name (default: /dev/ttyACM0)
-v, --verbose
enable verbose operation
--debug
enable debug printout, including all data sent to/from YubiHSM
--public_id_chars num
number of chars to pad public id to (default: 12)
--key-handles kh
key handles to use for decoding OTPs. Examples : "1", "0xabcd"
--output-dir dir, --aead-dir dir, -O dir
base directory for AEADs (default: /var/cache/yubikey-ksm/aeads)
--internal-db
add entrys to YubiHSM internal database, rather than creating AEAD files
INPUT FORMAT
The format of the input matches the export format of various Yubico tools, notably the PHP based soft KSM <http://code.google.com/p/
yubikey-ksm/>.
An example file, with a single entry for id 4711 would be :
# ykksm 1
123456,ftftftcccc,534543524554,fcacd309a20ce1809c2db257f0e8d6ea,000000000000,,,
(seqno, public id, private uid, AES key, dunno,,,)
The #ykksm 1 is a file marker, and has to be on the very first line of input.
BUGS
Report python-pyhsm/yhsm-import-keys bugs in the issue tracker <https://github.com/Yubico/python-pyhsm/issues/>
SEE ALSO
The python-yubico home page <https://github.com/Yubico/python-pyhsm/>
YubiHSMs can be obtained from Yubico <http://www.yubico.com/>.
python-pyhsm December 2011 yhsm-import-keys(1)