Hi
Not sure if this is the correct forum, however...
I have a Raspbian build (running XFCE4 desktop), its working very well... what i need to do is access the serial number of the RPi board.
Heres what i would like, using a "wget" command to call a page (www.domain.com/pi?serialnumber) so the webserver the other end sees the serial number.
How would i do this? if its a tiny shell script to get it then that would be great...
Ideas please.
accessing the Serial Number???
Many Thanks
Ashley
© Copyright 2015 - www.ashleygriffin.ca
Ashley
© Copyright 2015 - www.ashleygriffin.ca
Re: accessing the Serial Number???
cat /proc/cpuinfo|grep erial
Re: accessing the Serial Number???
pimon.org can do this.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Re: accessing the Serial Number???
Code: Select all
cat /proc/cpuinfo |grep Serial
Many Thanks
Ashley
© Copyright 2015 - www.ashleygriffin.ca
Ashley
© Copyright 2015 - www.ashleygriffin.ca
SOLVED accessing the Serial Number???
UPDATE
Using below code gives me just the serial number... (thanks everyone)
Using below code gives me just the serial number... (thanks everyone)
Code: Select all
cat /proc/cpuinfo |grep Serial|cut -d' ' -f2
Many Thanks
Ashley
© Copyright 2015 - www.ashleygriffin.ca
Ashley
© Copyright 2015 - www.ashleygriffin.ca