[maemo-developers] [maemo-developers] using execl
From: Brad Burleson bradb667 at gmail.comDate: Thu Dec 15 10:28:46 EET 2005
- Previous message: [maemo-developers] Connection with Nextel Phones (Motorola i870)
- Next message: [maemo-developers] using execl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm probably doing something stupid, but I'm trying to write a home plug-in that executes a shell script (which, in turn, will eventually launch some application). I hacked the code from one of the nokia 'hello-world-app' programs and except for struggling with the gnu build tools (and my own ignorance) things are going well. My code looks like this: execl("/bin/sh", "sh", "-c", "pplay", (char *)0); When I do this within a callback, as soon as the button is clicked the screen turns white and the script - and application - runs, but the UI is broken - hard to explain, but it's not drawn completely and the only function that seems to work is to close the program. At which point, the 770 reboots. (my feeble mind says it must be related to the [l]eave part of execl()) Any tips on how to execute a shell script (or any binary) from a maemo application? Thanks, Brad. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20051215/0ba96da9/attachment.htm
- Previous message: [maemo-developers] Connection with Nextel Phones (Motorola i870)
- Next message: [maemo-developers] using execl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]