LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-19-2005, 11:39 PM   #1
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,217

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
cron: xine Cannot open display


hi lq, is there anyway to execute xine from cron?:

thanks,

Code:
[schneidz@lq stuff]$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/kde-schneidz/kcronejosFb.tmp installed on Mon Aug 22 00:57:26 2005)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
0 6 * * *       xine -f /mnt/cdrom/*
# This file was written by KCron. Copyright (c) 1999, Gary Meyer
# Although KCron supports most crontab formats, use care when editing.
# Note: Lines beginning with "#\" indicates a disabled task.
[schneidz@lq stuff]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/schneidz": 2 messages 2 new
>N  1 root@lq.  Sun Sep 11 06:00  24/1184  "Cron <schneidz@lq"
 N  2 root@lq.  Fri Sep 16 06:00  24/1184  "Cron <schneidz@lq"
&
Message 1:
From schneidz@lq  Sun Sep 11 06:00:03 2005
Date: Sun, 11 Sep 2005 06:00:03 -0400
From: root@lq (Cron Daemon)
To: schneidz@lq
Subject: Cron <schneidz@lq> xine -f /mnt/cdrom/*
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/schneidz>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=schneidz>
 
Cannot open display
This is xine (X11 gui) - a free video player v0.9.22.
(c) 2000-2003 The xine Team.
Built with xine library 1.0.0 (1-rc0a)
Found xine library version: 1.0.0 (1-rc5).
 
Old 09-20-2005, 12:03 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
X Y * * * DISPLAY=localhost:0.0 xine "whatever blows your skirt.file"


And as the owner of the X-Session
xhost +localhost

 
Old 09-20-2005, 09:59 AM   #3
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,217

Original Poster
Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
thanks tin, should be something fun to hack around with this week. i was trying to create a visual alarm clock (they showed a $400 box from japan that did the same on 'g4-attack of the show').

i wonder if that'll make my monitor wake-up?
 
Old 09-20-2005, 03:43 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Doubt it ... it's just screen-action, not human-action.


Cheers,
Tink
 
Old 09-23-2005, 11:53 AM   #5
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,217

Original Poster
Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
it works and it wakes up my moniter.
 
Old 09-23-2005, 02:37 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Heh - good for you ;}


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xine won't display red! caps_phisto Linux - General 1 01-16-2005 07:48 PM
Cron job - which X display is used by default? fiservguy Linux - General 5 12-29-2004 04:27 PM
XINE display problems on Fedora Core 2 naik_yogesh Linux - Software 4 08-23-2004 08:08 AM
help!! xine, mplayer, totem display problems shinacalypse Linux - Software 12 12-12-2003 08:21 AM
xine display and controls issues mr_mandrill Linux - Software 0 09-12-2002 07:33 AM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration