LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10:39 PM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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-19-2005, 11:03 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 08:59 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 02:43 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 09-23-2005, 10:53 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
it works and it wakes up my moniter.
 
Old 09-23-2005, 01:37 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
  


Reply



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 06:48 PM
Cron job - which X display is used by default? fiservguy Linux - General 5 12-29-2004 03:27 PM
XINE display problems on Fedora Core 2 naik_yogesh Linux - Software 4 08-23-2004 07:08 AM
help!! xine, mplayer, totem display problems shinacalypse Linux - Software 12 12-12-2003 07:21 AM
xine display and controls issues mr_mandrill Linux - Software 0 09-12-2002 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:10 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
Open Source Consulting | Domain Registration