pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

enabling pytivo.py with kcron on Linux

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Hacks
 View previous topic :: View next topic  
Author Message
BluesKaj



Joined: 25 Mar 2008
Posts: 28
Location: Ontario Canada

PostPosted: Mon May 19, 2008 3:08 pm    Post subject: enabling pytivo.py with kcron on Linux Reply with quote

I was experimenting with running pyTivo script as a cronjob task. Make pyTivo.py run as a scheduled job like an autostart daemon by installing pyTivo in /home/user then using kcron task scheduler with the path /home/user/pyTivo/pyTivo.py, and scheduling it daily.I t works so far on my setup.
Using Kubuntu Hardy (kde3.5.9). I hope others try this and feedback any probs encountered , thanks.
Back to top
View user's profile Send private message
windracer



Joined: 04 Jan 2008
Posts: 151
Location: St. Pete, FL

PostPosted: Tue May 20, 2008 5:34 am    Post subject: Reply with quote

Maybe I'm missing something but what's the point of scheduling it? I guess you only want it running at certain times (i.e., when you're home to actually watch TV)?
_________________
pyTiVo on Ubuntu 8.10
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
BluesKaj



Joined: 25 Mar 2008
Posts: 28
Location: Ontario Canada

PostPosted: Tue May 20, 2008 3:13 pm    Post subject: Scheduling pyTivo Reply with quote

The reason for scheduling is that I prefer to have pyTivo run like a daemon . I tried the init.d script on the trac site but I couldn't make it work for me. I tried the cronjob and it works without typing the commands in everyday and having the shell constantly open in the panel.
I know it may sound strange to some , but it works. Cool
Back to top
View user's profile Send private message
windracer



Joined: 04 Jan 2008
Posts: 151
Location: St. Pete, FL

PostPosted: Tue May 20, 2008 4:17 pm    Post subject: Reply with quote

That's weird ... I'm using an init.d script on Ubuntu (Gutsy) without any problem.
_________________
pyTiVo on Ubuntu 8.10
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
BluesKaj



Joined: 25 Mar 2008
Posts: 28
Location: Ontario Canada

PostPosted: Thu Jun 12, 2008 11:41 am    Post subject: init.d script Reply with quote

hi windracer.
I noticed you mention that you're running "a int.d script ". Was wondering if it's similar to the one here : http://pytivo.armooo.net/wiki/initd . I've tried editing this script to make it work including following the tutorial here: http://www.debian-administration.org/articles/28 .
I made the script executable and added the appropriate symbolic links via the cli, as described in the tutorial , as well editing the path to point to my pyTivo folder. However, the script still isn't quite right since it's not working for me.
Perhaps you could post your working script and we could compare notes, to see what I'm missing or doing wrong.

Thanks
Back to top
View user's profile Send private message
windracer



Joined: 04 Jan 2008
Posts: 151
Location: St. Pete, FL

PostPosted: Thu Jun 12, 2008 12:25 pm    Post subject: Reply with quote

I've posted my init script here:

http://pytivo.krkeegan.com/post1804.html#1804

I just upgraded from Gutsy to Hardy yesterday and the same script works just fine. It's under /etc/init.d and I used 'sudo update-rc.d pytivo defaults' to create the proper symlinks in the various runlevel directories.

You'll have to change the occurences of /usr/local/tivo/pyTivo to wherever you have installed pyTivo.

_________________
pyTiVo on Ubuntu 8.10
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Hacks All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO
[ Time: 0.2963s ][ Queries: 13 (0.1893s) ][ Debug on ]