(SOLVED) Re: cron job question (for checking kernel updates)

poma pomidorabelisima at gmail.com
Fri Oct 4 00:11:24 UTC 2013


On 03.10.2013 23:38, Ranjan Maitra wrote:

> 
> Following, this post pointed to me my Matthew Miller, I am able to get
> things working. Here is what I did (same as in the post there).
> 
> Created a file as follows (called ~/bin/export_x_info):
> 
> #!/bin/bash
> # Export the dbus session address on startup so it can be used by cron
> touch $HOME/.Xdbus
> chmod 600 $HOME/.Xdbus
> env | grep DBUS_SESSION_BUS_ADDRESS > $HOME/.Xdbus
> echo 'export DBUS_SESSION_BUS_ADDRESS' >> $HOME/.Xdbus
> # Export XAUTHORITY value on startup so it can be used by cron
> env | grep XAUTHORITY >> $HOME/.Xdbus
> echo 'export XAUTHORITY' >> $HOME/.Xdbus
> 
> ----
> make the file executable:
> 
> $ chmod 700 ~/bin/export_x_info
> 
> Change this to be sourced at startup. I added the line to
> ~/.config/openbox/autostart: 
> 
> /home/maitra/bin/export_x_info&
> 
> ----
> 
> added the following line to crontab (via crontab -e):
> 
> 37 * * * * source $HOME/.Xdbus; nice -n 19
> $HOME/scripts/yum/check-kernel.sh
> 
> This works now!
> 
> Thanks very much everybody's help!
> Best wishes,
> Ranjan
> 

For this we use The Desktop Environments and The Display Managers. :)
For the full GNU/Linux experience, I recommend something called LFS[1],
Now, that's a real fun. ;)
Remember, the second
you go through those doors,
everything changes.
Our old life is done.
Let's go for a little ride.


poma


[1] http://en.wikipedia.org/wiki/Linux_From_Scratch




More information about the users mailing list