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!!!
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...
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