Help - Search - Members - Calendar
Full Version: 5600 - Run A Script On Sd Insertion
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > 5x00 General discussions
gilkyboy
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
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.