On ב', 2005-02-14 at 20:24 +0200, [EMAIL PROTECTED] wrote: > Hi, > I have a file in which I write down the dates, hours etc of > future events and a simple script that sorts the lines > chronologically and prints out the output relevant to the next > few days. A line in my .bash_profile calls this script every time > I boot. > Since we bought a second computer, for my wife, I hardly ever > boot now. That is fine, but I've lost thereby my automatic > reminder. > I use to leave the graphic environement when I leave the > computer, to allow my wife to shut it down or reboot if need be. > nd restart X when I wish to use it. > I tried to call that script automatically at startx, by including > in .xinitrc the line: > xterm -cu -geometry 100x39+0+0 -bg cornsilk -sb -sl 500 -ms blue1 > -xrm 'xterm*pointerShape: dot' -title "Hebfont Xterm" -fn > '-etl-fixed-medium-r-normal--24-240-72-72-c-120-iso8859-8' -e > /home/avraham/scripts remind 7 | less & > .. but this does not work as expected. I would go ( haven't checked your xterm syntax yet... ) to: xterm -cu -geometry 100x39+0+0 -bg cornsilk -sb -sl 500 -ms blue1 -xrm 'xterm*pointerShape: dot' -title "Hebfont Xterm" -fn '-etl-fixed-medium-r-normal--24-240-72-72-c-120-iso8859-8' -e "/home/avraham/scripts remind 7 | less" > What is the proper way to do it ? I think you should use X11 enabled cron-like tools. if you use gnome - there's evolution ... or kalarm in kde ... and...maybe there's some WMaker DockApp. The general problem is - to have the DISPLAY variable set properly and xauth credentials too. i AM not so concentrated on this subj, but there's also an OSD wrapper, so you can print your messages on X display too.
the points you should look at: 1. DISPLAY variable. 2. X11 access rights - xauth extract/merge , xhost + 127.0.0.1 etc. 3. spawning the term/osd whatever proggie should be from the allowed user and into the allowed display/server. I still think Kalarm/Korganizer/Evolution can do the job well too. Best regards, Max > Thanks, Avraham > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > ** MAXIMUM TERMINALS ACTIVE. TRY AGAIN LATER ** ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]