Hello everybody!
I am new here and i have started with the programming of a Raspberry Pi a week ago and so please be gentle with my silly questions
.
I want to write a python script, that writes an information on a nfc-tag. I am working with the Raspberry Pi2, Raspian Jessie and the NFC-shield Explore-NFC-WW V1.6.
I want to write at a nfc tag with the command "explorenfc-basic -w <text> -t URI". After the writing i want to read out the <text> to see that the information is really written on the text. With the command "explorenfc-basic" i got the whole information from the tag, but i only want the <text>.
So my first question: is it possible that i only get the information of the tag that i want? In my case the <text>. 
I tried to do it with Popen(["explorenfc-basic -w %s -t URI -l d" %(<TEXT>)],stdin=PIPE,stdout=PIPE,stderr=PIPE,close_fds=True,shell=True) but this is not working very well. The process is call up to often and the tag will not be written.
So my second question: can i kill the process when the tag is written? How can i do that? 
Or is there a better way to write and read the information and to compare the written and readed text (for safety reasons)? 
I can not find a solution that fits to my problem at the internet.







