Elizabeth Dodd wrote: > as part of my new_background_every_day project, I need to restart freevo from > cron. > I have an X-server running. > Cron fails to restart freevo using > 2 6 * * * /usr/bin/freevo start & > > because > Warning: display is set to x11, but the environment has no DISPLAY set. > Setting display to fbdev. > > Can someone drop some very specific hints on what environment I should set in > the crontab? > > I promise to put the lot in the wiki when done :-) >
I would create a shell script that contains: #! /bin/bash # freevo-cron start export DISPLAY=localhost:0 /usr/bin/freevo # freevo-cron end You don't need start after freevo this is the default. Then in cron have: 2 6 * * * /path/to/freevo-cron & The owner of the xserver will need to run "xhost +" if the owner is not the same as the cronjob server. Duncan ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users
