Reply
Thread Tools
Posts: 7 | Thanked: 0 times | Joined on May 2008
#11
I am really crazy !! the alarm is still useless!!!
1. I run the compiled alarm program in this menu
~/MyDocs/.documents/Zn $ ./example-alarm
then there is some info about this alarm
like this
"Alarm event successfully set to ........... cookie 1213095383"

After the duration i set ,the dialog of alarm opened ,but no other action

I set the exec_name like this!
event.exec_name="/home/user/MyDocs/.documents/output123.sh"
the output123.sh wrote like this
"# !/bin/bash
echo "sdfskdfj">123.txt
123.txt
"
I have already tried this script ,which is OK!

In addition ,I write the exec_name like this
"event.exec_name="mplayer **.avi";


But all of this exec_name are useless!! No file created,no mplayer played!!!

I am crazy now!!!!!!!!!!!!11
 
Posts: 7 | Thanked: 0 times | Joined on May 2008
#12
Waiting for your help
 
Posts: 1 | Thanked: 0 times | Joined on Nov 2008 @ China Beijing
#13
Originally Posted by adezn88 View Post
Waiting for your help
hello ,do you solve you problem?
I also want to executive my shell script automaticlly with the struct alarm_event_t,but when i run mr problem,i meet some errors:"error setting alarm event,Error code '6',i don't know how to solve
I use the code system("your shell script"),such as system("./111.sh") or system("echo hello") embed in C language, and this can script automatically,and we can use sleep() to control the start time
you can try this...
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:13.