|
| Author |
Message |
BluesKaj

Joined: 25 Mar 2008 Posts: 28 Location: Ontario Canada
|
Posted: Mon May 19, 2008 3:08 pm Post subject: enabling pytivo.py with kcron on Linux |
|
|
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 |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 146 Location: St. Pete, FL
|
Posted: Tue May 20, 2008 5:34 am Post subject: |
|
|
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.04 |
|
| Back to top |
|
 |
BluesKaj

Joined: 25 Mar 2008 Posts: 28 Location: Ontario Canada
|
Posted: Tue May 20, 2008 3:13 pm Post subject: Scheduling pyTivo |
|
|
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.  |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 146 Location: St. Pete, FL
|
Posted: Tue May 20, 2008 4:17 pm Post subject: |
|
|
That's weird ... I'm using an init.d script on Ubuntu (Gutsy) without any problem. _________________ pyTiVo on Ubuntu 8.04 |
|
| Back to top |
|
 |
BluesKaj

Joined: 25 Mar 2008 Posts: 28 Location: Ontario Canada
|
Posted: Thu Jun 12, 2008 11:41 am Post subject: init.d script |
|
|
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 |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 146 Location: St. Pete, FL
|
Posted: Thu Jun 12, 2008 12:25 pm Post subject: |
|
|
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.04 |
|
| Back to top |
|
 |
|