Forgot your password?
typodupeerror
User Journal

Journal Journal: RadioVo Source - Various comments

Here is how you add the daemon to start up on Virtual Console 1:

In /etc/inittab, replace the line beginning with "1:" with this:

1:2345:respawn:/sbin/agetty -i -n -l /MUSIC/bin/music_daemon.pl /dev/tty1 9600

You need to make sure you have "agetty" installed and that the path is right.

User Journal

Journal Journal: RadioVo Source - Config File (oggrec.conf)

$date = `/bin/date +%Y%m%d%H%M%S`;
chop($date);

$genre="Radio";
$artist="Radio";
$title="Recording - $date";
$track="1";
$album="Recordings";

$time="1"; # Time in seconds

##############################################
# Stupid RAWREC can't be called with full path
##############################################
$rawrec="(PATH=$PATH:/usr/local/bin; rawrec)";
# $rawrec_args="-t $time";
$rawrec_args="";
User Journal

Journal Journal: RadioVo Source - Perl Module (oggrec.pm)

# Read the config file given as argv[0]
# All you give as an argument is the first
# part of the name of the config file

package oggrec;

sub new {
my $this = {};
bless $this;
return $this;
}
User Journal

Journal Journal: RadioVo Source - Main Daemon

#!/usr/bin/perl
#
#########################
#load required modules
#########################
use lib "/MUSIC/bin";
use strict;
use Term::ReadKey;
use POSIX qw(setsid);
use oggrec;

#########################
# set variables
#########################
my $return_val;
my %key_map;
my $char;
my $rec_pid;
my $STATUS_FILE = "/MUSIC/status/music.pid";
# my $std_out = $ARGV[0];

Slashdot Top Deals

There are worse things in life than death. Have you ever spent an evening with an insurance salesman? -- Woody Allen

Working...