ATR_ANALYSIS(1p) User Commands ATR_ANALYSIS(1p)NAME
ATR_analysis - analyse a smart card ATR
SYNOPSIS
ATR_analysis [ATRstring]
DESCRIPTION
ATR_analysis is used to parse the ATR (Answer To Reset) sent by a smart card.
The command also tries to find the card model using an ATR database stored in a text file smartcard_list.txt.
The smartcard_list.txt file is searched in ./, /usr/local/pcsc/ and /usr/share/pcsc/ directories.
Exemple:
$ ATR_analysis '3B A7 00 40 18 80 65 A2 08 01 01 52'
ATR: 3B A7 00 40 18 80 65 A2 08 01 01 52
+ TS = 3B --> Direct Convention
+ T0 = A7, Y(1): 1010, K: 7 (historical bytes)
TB(1) = 00 --> Programming Param P: 0, I: 0
TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
-----
TC(2) = 18 --> Work waiting time: 960 x 24 x (Fi/F)
+ Historical bytes: 80 65 A2 08 01 01 52
Possibly identified card:
3B A7 00 40 18 80 65 A2 08 01 01 52
Gemplus GPK8000
BUGS
Maybe many bugs since I am not a ISO 7816 expert.
FILES
smartcard_list.txt
SEE ALSO pcscd(8), pcsc_scan(1)AUTHOR
Ludovic Rousseau <ludovic.rousseau@free.fr>
Version: 1.3 October 2005 ATR_ANALYSIS(1p)
Check Out this Related Man Page
PCSC_SCAN(1) General Commands Manual PCSC_SCAN(1)NAME
pcsc_scan - regularly scans every PC/SC readers connected to the host
SYNOPSIS
pcsc_scan [options]
DESCRIPTION
This manual page documents briefly the pcsc_scan command.
pcsc_scan is a program that regularly scans every PC/SC readers connected to the host
When pcsc_scan is started it asks pcscd the list of available smart card readers. The list is printed. A sequence number is printed before
each reader.
Example:
PC/SC device scanner
V 1.1.0 (c) 2001-2002, Ludovic Rousseau
PC/SC lite version: 1.1.1
0: GemPC410 0 0
1: GemPC430 0 0
When a card is inserted in any reader some information is printed:
date and time:
Thu Jun 13 18:56:14 2002
reader name:
Reader 0 (GemPC410 0 0)
card state and occured event:
Card state: State has changed, Card inserted,
ATR in case of card insertion:
ATR: 3B 82 00 86 1E
print an ATR analysis if the ATR_analysis command is available:
ATR: 3B 82 00 86 1E
+ TS = 3B --> Direct Convention
+ T0 = 82, Y(1): 1000, K: 2 (historical bytes)
TD(1) = 00 --> Y(i+1) = 0000, Protocol T = 0
-----
+ Historical bytes: 86 1E
OPTIONS -h print help
-V print version number
-n do not print ATR analysis
SEE ALSO pcscd(1), ATR_analysis(1)AUTHOR
Ludovic Rousseau <ludovic.rousseau@free.fr>
june 13, 2002 PCSC_SCAN(1)
I have a series of folders /temp/a /temp/b /temp/c
In folders a, b, and c, I have files
a1.txt..........a20.txt
b1.txt..........b40.txt &
c1.txt..........c60.txt
Each file has the same data format :-
Line 1 AAAAA aaaa
Line 2 BBB bbbbbb
Line 3 CCCC cccccc
Etc etc
I need to write a... (13 Replies)
Hey guys I am new to unix programming and need some help with a task.
I have a file that is comma delimited with values like this
1,NEW.txt
1,OLD.txt
2,MONKEY.txt
3,FUN.txt
100,MONEY.txt
I have a user enter a value for the type they want (1,2,3,100).
I then want to compare the first... (6 Replies)
I am pretty new to UNIX. My client has a requirement where in a directory we have some files with somewhat similar name
like test_XX.txt, test_XY.txt, test_XZ.txt, test_ZZ.txt, test_ZY.txt, test_ZX.txt, test_YY.txt......Out of these files
few files have 0 bytes. Is there a way where we can go... (7 Replies)
Hi, everyone,
Let's say, we have
xxx.txt
A 1 2 3 4 5
C 1 2 3 4 5
E 1 2 3 4 5
yyy.txt
A 1 2 3 4 5
B 1 2 3 4 5
C 1 2 3 4 5
D 1 2 3 4 5
E 1 2 3 4 5
First I match the first column I find intersection (A,C, E), then I want to take those lines with ACE out from yyy.txt, like
A 1... (11 Replies)
Hi all
I have two file a.txt and b.txt and i want to compare their first coloum and print the o/p to the third file c.txt
comparing should be in such a way that if matching first coloum is not found in any of the file then it should print No row
like here AAA is present in both file so o/p... (6 Replies)
I got a long list of file name.
My input:
data_1.txt
data_2.txt
data_3.txt
data_10.txt
data_21.txt
data_12.txt
data_4.txt
My desired output:
data_1.txt
data_2.txt
data_3.txt
data_4.txt
data_10.txt
data_12.txt
data_21.txt
Does anybody got idea how to archive it? (11 Replies)
Hi,
I have a file abcd.txt which in turn contains 20 file names as column 1.
Now I want to run a command "ct co -nc" / "cp" / "mv" on each of these $1 column content i.e. on each of the 20 file names.
How can do this using a script so that I need not run the same command 20 times... (13 Replies)
Hi,
I am looking for an answer for following senario:
I have a text file (base.txt) which consist list of files to be searched like:
base.txt
abc.txt
def.txt
fgh.txt
Now i am going to search all the listed files in another directory after reading them one by one, once i found the... (10 Replies)
Hi All,
Needs to store file name in to the same file..
Ex: I have fixed width files under /usr/tmp/
A.txt
B.txt
C.txt
.......
N.txt
O/P
A.txt
1 KING A.txt
2 QUEEN B.txt
B.txt
1 Hello B.txt
2 COOL B.txt
3 KILL B.txt (6 Replies)
Hello,
I have a note pad at /usr/abc location with the following content, since it is a huge file i need to split it into multiple .txt files.
A123|akdhj |21kjsdff |b212b1b21 |0
A123asdasd |assdd |asdasdsdqw|6
A123|QEWQ |NMTGHJK |zxczxczx|3
A123|GEGBGH |RTYBN ... (15 Replies)
I have long list of file wanna processed by a program:
data_1.txt
data_2.txt
data_3.txt
data_4.txt
data_5.txt
data_6.txt
data_7.txt
data_8.txt
.
.
data_1_2.txt
data_2_2.txt
data_3_2.txt
data_4_2.txt
data_5_2.txt
data_6_2.txt
. (12 Replies)
Hi, I am also a newbie in awk and trying to find solution of my problem.
I have one reference file 1.txt with 2 columns and I want to search other 10 files (a.txt, b.txt......h.txt each with 5 columns) corresponding to the values of 2nd column from 1.txt. If the value from 2nd column from 1.txt... (33 Replies)
I have more than one files in a directory , namely
GLOW_OUT.txt
FIELD_OUT.txt
BASE_OUT.txt
...
SHOW_OUT.txt
What I wanted to do is to
I am working in Korn Shell
What I did was :
for file in <directory_name>/*.* ;do
cat $file | grep -v '^$' >> temp_file
rm $file
done
... (7 Replies)
Hi All,
i have file name like below
ABC_065224_123456_123456_your_130413_163005.txt
ABC_065224_123456_MAIN_20130413_163005.txt
ABC_065224_123456_123456_MAIN_130413_163005.txt
ABC_065224_123456_123456_434567_MAIN_130413_163005.txt
i need to find out the number of characters in the filed... (6 Replies)