Author Topic: 5600 - Run A Script On Sd Insertion  (Read 3821 times)

gilkyboy

  • Newbie
  • *
  • Posts: 4
    • View Profile
5600 - Run A Script On Sd Insertion
« on: March 30, 2007, 04:41:58 pm »
I have a zaurus 5600, and I have a script I want to run when I put my SD card into it.  I'm really not sure what files I would need to hack away at and what I would need to add to them.  If any of you can help me, I would greatly appreciate it.  Thanks in advance,
     Gilkyboy

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
5600 - Run A Script On Sd Insertion
« Reply #1 on: April 01, 2007, 01:27:58 pm »
Do you mean that you want your Z to automatically run a particular script every time you insert an SD card?

I think it would slow your Z down a lot because, from what I know,  you'd have to write a script to run as a cron or at job every so often that respawned another one at a specified interval.  Maybe somebody has some better ideas.  The other thing to do I guess would be to write a script that looped infinitely, including a sleep, and if it detected the SD card, have it call your script, and then have it loop until you eject the card and then start over looking for another insertion.

Why not just run the script from the command line after you insert the card?

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards