da kyakan » dom gen 23, 2005 17:41
Si in effeti con quote va.. avevo provato con code ma dava quello strano messaggio..
<BR>Lo posto qui...magari gli date n´occhiata :-]
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>
<BR>#/bin/sh
<BR>#
<BR># Stickynotes Notifier 0.3
<BR># Stickynotes Notifier is a simple program that notify with a sound
<BR># when the current date, specified in title, expire.
<BR>#
<BR># Setting Environmente Variable:
<BR># fsound=.. Audio file for play custom signal (play command).
<BR># forma=... Day format specified in title of message.
<BR># accept=.. Date separation character pipe separated
<BR># (eg. accept="-|/" for 2005/12/12 or
<BR># 2005-12-12 or 2005-12/12 ...but NOT 2005|01|01 !!)
<BR>#
<BR># If is specified YY only (and not YYYY) year is prefixed with 20
<BR># (eg. if in title is specifide 05/01/01 is assumed like 2005/01/01)
<BR>#
<BR># Author Cristian SICILIA (KyaKAN)
<BR>
<BR>
<BR># Setting Variable
<BR>fsound="/mnt/c/Programmi/FlashGet/sounds/done.wav"
<BR>#forma=MMDDYY
<BR>forma=YYYYMMDD
<BR>accept="-|/|."
<BR>#### End Setup
<BR>
<BR>for f in `users | replace " " "
<BR>" | grep -v root | sort -u` ; do
<BR> cat /home/$f/.gnome2/stickynotes_applet | awk \
<BR> -v mo=`date +%s` -v fsound=$fsound -v forma=$forma \
<BR> -v accept=$accept ´{
<BR> if ($0 ~ "note title=") {
<BR> gsub("[ ]*<note title=\"[ ]*","");
<BR> gsub("\".*","");
<BR> gsub(accept," ");
<BR> gsub("YYYY"," "$1" ",forma);
<BR> gsub("YY"," 20"$1" ",forma);
<BR> gsub("MM"," "$2" ",forma);
<BR> gsub("DD"," "$3" ",forma);
<BR> d=mktime(forma " 00 00 00 ");
<BR> if((d-mo)/3600/24 < 0)
<BR> system("play " fsound) ;
<BR> }
<BR> }´
<BR>done
<BR></BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End --> <br>