Tech
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
Get APRS status via SMS/email
I wrote an email system that will email you a APRS station’s info (last heard time, position, and APRS status).
To use the system, just send an email or SMS (text message) to aprs@tomh.us with the station’s callsign at the start of the message. Emails must be in plain text format, not multipart/HTML.
You should receive a response in about a minute. It will look something like this:
WA7RVV-12 6min ago:
Saltese, Mt 59867, USA
/W2,MTN,LOOKOUT PASS
47.454167,-115.658333
I made you a 1234567890 countdown timer
Unix time will reach 1234567890 on 2009-02-13 15:31:30. I made a countdown timer in bash.
#!/bin/sh printf "tUNIX TIMEt TO GO:tDAYStHOURStMINUTEStSECONDSn" while true; DATE=`date +%s` SECONDS=$[1234567890-$DATE] MINUTES=$[$SECONDS/60] HOURS=$[$MINUTES/60] DAYS=$[$HOURS/24] printf "t%stt%4st%5st%7st%7sr" "$DATE" "$DAYS" "$[$HOURS%$DAYS]" "$[$MINUTES%$HOURS]" "$[$SECONDS%$MINUTES]" sleep 1 done
Send a file to a process by writing to /proc
I’d like a way to “write” to a Linux filesystem, but rather than write the file, have the file sent to a process (so that it can be sent to another server over the network). I think this is possible with a kernel module by writing to /proc/mykernelmodule/filetosend, but I don’t know of any good resources that teach this. Any ideas?
Edit: This seems like a pretty good resource (haven’t started hacking on it yet): http://tldp.org/LDP/lkmpg/2.6/html/x810.html.