webOS Nation Forums >  webOS Developers >  webOS Development > need help A way of automativally running a script
need help A way of automativally running a script
  Reply
 
Thread Tools Display Modes
Old 01/01/2013, 09:12 AM   #1 (permalink)
Member
 
Posts: 23
Default need help a way of automatically running a script

Hi,
i am running a script directly from terminal when i get a phone call,
i was wondering if there is an automatic way to run any script on event, such as when answering
a call?
i am using a pre3, i am no developer but will try to understand.

Last edited by labwizard; 01/01/2013 at 09:14 AM. Reason: title fixing
labwizard is offline   Reply With Quote
Old 01/01/2013, 09:44 AM   #2 (permalink)
Member
 
geekpeter's Avatar
 
Posts: 3,017
Default

out of curiosity, what does your script do?
__________________
Touchpad Keyboard Themes - >> Click Me <<
geekpeter is offline   Reply With Quote
Old 01/01/2013, 12:31 PM   #3 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

You could try converting it into a Palm service and subscribe to the incoming call event.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Old 01/01/2013, 03:34 PM   #4 (permalink)
Member
 
Posts: 23
Default

here's the script, i got it from here

arecord -D hw:0,0 -f S16_LE -d 90 /media/internal/rec.bin

GMMan, interesting, i will do a research and see how can i achieve this,
can it be mapped to the answer button, onClick onDrag?
(sorry i am approaching this from the little i know in actionscript)

2 issues remaining with the script that i will leave them for other threads
incremental file naming
and dynamic timing to match the call timing
labwizard is offline   Reply With Quote
Old 01/01/2013, 07:01 PM   #5 (permalink)
Member
 
GMMan's Avatar
 
Posts: 2,090
Default

Mojo supports running command line programs, though it's limited to Palm apps only and in certain circumstances (I haven't researched the extent it's allowed). Try looking around for services that do this, like the backup service. There's also a media capture service, though I'm not sure if it records calls.
__________________
Contact: @GMMan_BZFlag (me on Twitter) | webOS onTap | @webOSonTap
webOS Releases: Change your App Catalog country: TouchPad/PC | TouchPad/webOS Resources | Search suggestion patch for browser | Cycling Email Notifications | Don't Doctor! Make a good support request. | How to post logs | webOS Charge Monitor

I will be busy, so I may not be able to provide private support.
GMMan is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0