Sponsored Content
Top Forums UNIX for Advanced & Expert Users cron problem (duplicate mencoder jobs)? Post 302208701 by gstuart on Tuesday 24th of June 2008 03:17:57 PM
Old 06-24-2008
cron problem (duplicate mencoder jobs)?

Hello - Please forgive me is this is the incorrect forum for this post ...

I have a Hauppauge PVR-500 ("dual PVR-150") TV tuner card, installed under Ubuntu 8.04 LTS (64-bit). I wrote a simple bash script to record programs using the /dev/video0 or/and the /dev/video1 cards. I use a separate script to schedule recording times, using "at commands," that are executed by my local crontab (user crontab -e).

I've noticed that if I schedule simultaneous recordings in cron, I run into problems, e.g. one recording won't start until the first is complete, if both are schedules to start at the same time, and end at the same time. If I "nest" one recording (e.g. 30 minutes on tuner 1) that occurs after a longer recording (e.g. 2 hours) on tuner 0) has started, then the one on tuner 1 records successfully, but the one on tuner 2 does not quit but rather continues to re-record, continually overwriting the intended recording.

When I check my running processes (system activity), I see that one or two instances of mencoder are still running (I'm typing this from memory, at work).

I believe that this is a cron / process ID (pid) / scheduling conflict. I did a lot of Google searches (e.g.: cron, mencoder, simultaneous, scheduling, conflicts, fifo, tee, etc.) but I am unable to see a simple explanantion / solution.

Can anyone address the issue of how to get two instances of mencoder to operate, simultaneously, without interfering / conflicting with one another? For example, could I specify unique PID's (how?)? ...

Thank you, appreciated! Greg :-)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cron jobs

hi folks, I need an explanation on cron jobs with an example (4 Replies)
Discussion started by: vijaysabari
4 Replies

2. UNIX for Dummies Questions & Answers

cron jobs

I was wondering if itīs possible to cron job not to run on a certian day and time. Iīve got a job that runs everyday at 08:00 but would like it not to run on the 20:th between 08:00 and 10:00 Anyone know if this is possible, and if. How do i do it? regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies

3. UNIX for Dummies Questions & Answers

Cron Jobs

Where can someone find info on Cron Jobs? Very new to UNIX and the PC I inherited looks to have several of them. Looks like they are some kind of background program that runs automatically at specified times. Would like to delete some of them and know more about them. (6 Replies)
Discussion started by: dereckbc
6 Replies

4. HP-UX

Cron jobs

i am new for cronjobs can someone please tell me what logic is behind these RED Numbers and stars below? --> crontab -l 00 1 * * * /home/scripts/TarprodContent > /tmp/MprodBkup.log 2>&1 00 1 * * * /home/scripts/TarTprodContent > /tmp/TprodBkup.log 2>&1 00 1 * * *... (5 Replies)
Discussion started by: ajadaun
5 Replies

5. Linux

cron jobs

I created a php script. I'd like to have it run as a cron job every day at 10:30am. So i added 30 10 * * * /script.php to the cron file Is it possible to run the script on the command line to test it out ? (1 Reply)
Discussion started by: dannyd
1 Replies

6. UNIX for Advanced & Expert Users

cron jobs...

I need to start a job every friday night at 8:00 P.M , it runs all the day on Sat and Sun....can somebody tell me how to do this...I understand crontab...but haven't used it.........can u write some steps.....how to create a file and call.....I honestly dont know? Plz help.Thanks (2 Replies)
Discussion started by: RubinPat
2 Replies

7. Solaris

cron jobs

how to Put a cron entry which should be same script triggered on every Saturday and 1st of every month at 01.00 GMT. 0 2 1 * 6 --( At 2.00 GMT every sat & on 1st of every month) the above syntax is correct? Thanks (1 Reply)
Discussion started by: kurva
1 Replies

8. UNIX for Dummies Questions & Answers

cron jobs

Hi, We have a group of hosts using which the cron jobs are submitted... Few days ago i had submitted a cron job in of these hosts, but unfortunately forgot the host name :( Can anyone please help me out in finding this host name from which the cron s submitting the job, i dont want the... (2 Replies)
Discussion started by: bhavanisree
2 Replies

9. Solaris

Cron jobs and at jobs

There are two jobs in Solaris , Cron and at jobs.. I know how to disable or enable cron jobs. How can I enable at jobs and disable it. Kindly help. Rj (2 Replies)
Discussion started by: jegaraman
2 Replies

10. Red Hat

Cron jobs

I'm running cronjobs on a redhat 5.X. Cronjobs are getting failed frequently so how to find the root cause (2 Replies)
Discussion started by: karthik9358
2 Replies
HDHOMERUN_CONFIG(1)													       HDHOMERUN_CONFIG(1)

NAME
hdhomerun_config - A utility used for maintaining and controlling a Silicon Dust HDHomeRun SYNOPSIS
hdhomerun_config <id> command [options] DESCRIPTION
The HDHomeRun is a networked digital television receiver with two tuners. It can tune QAM64, QAM128, QAM256, or 8VSB television streams. It is most useful in the United States where QAM is very commonly used for cable transmission and 8VSB (ATSC) for Over The Air television transmission. This utility can be used to control the HDHomeRun, update it, and query information about it. The only requirement for the utility is that the HDHomeRun be hooked up on the same subnet as the computer peforming the actions. The HDHomeRun will receive an address via DHCP, so if static addressing is in use on the network instead, the device will not function. FEATURES
1) Multiple tuners. For those nights that several primetime shows are on at the same time, you won't need to worry. 2) QAM & OTA support. Both tuners can be set as either QAM or OTA. This way if only a few channels are available by one variety, but you would still like those channels, each tuner can be used for the different connections. 3) Networked. The HDHomeRun can be accessed by any computer on the local network by using VLC, MythTV, or SageTV. 4) Upgradable. Silicon Dust regularly releases firmware updates for the HDHomeRun. These can be used to add support for upcoming record- ing standards, changing frequencies, or stability. OPTIONS
discover Locates all HDHomeRun(s) on your network and displays their ID <id> get help Displays supported configuration for current firmware revision <id> get <item> Obtains the current value for the given configuration <item> <id> set <item> Sets the new current value for the given configuration <item> <id> scan <tuner> <file> Performs a QAM/8VSB scan using <tuner> and saves results to <file> <id> save <tuner> <file> Saves a copy of the stream that <tuner> is tuning to <file> <id> upgrade <file> Installs <file> as a firmware upgrade on the HDHomeRun WARNING: Don't attempt to upgrade the HDHomeRun with something other than a Silicon Dust firmware update. Using the May 12, 2007 firmware, here are the currently supported configuration items: /tuner<n>/channel <modulation>:<freq|ch> Get/set modulation and frequency /tuner<n>/channelmap <channel map> Get/set channel to frequency map /tuner<n>/filter 0x<nnnn>-0x<nnnn> [...] Get/set PID filter /tuner<n>/program <program number> Get/set MPEG program filter /tuner<n>/target <ip>:<port> Get/set target IP for tuner /tuner<n>/status Display status of tuner /tuner<n>/streaminfo Display stream info /tuner<n>/debug Display debug info for tuner /ir/target <ip>:<port> Get/set target IP for IR /lineup/location <countrycode>:<postcode> Get/Set location for lineup /lineup/location disabled Disable lineup server connection /sys/version Display firmware version /sys/copyright Display firmware copyright /sys/debug Display debug info AUTHOR
The HDHomeRun configuration utility was written by Silicon Dust to support their product. This manual page was written by Mario Limonciello <superm1@ubuntu.com>, for the Ubuntu project (but may be used by others). COPYRIGHT
Copyright 2005-2006 Silicon Dust Engineering Ltd. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. May 26, 2007 HDHOMERUN_CONFIG(1)
All times are GMT -4. The time now is 07:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy