jobs auf zeit

Florian Lohoff flo at rfc822.org
Mon Jun 2 01:23:20 CEST 2003


On Mon, Jun 02, 2003 at 01:14:06AM +0200, Thomas Balsfulland wrote:
> Hallo Leute,
> 
> das ich mit cron beliebige Jobs zeitgesteuert starten kann ist
> ja nicht sonderlich schwierig - aber wie beende ich diese wieder?
> 
> Es geht speziell um Aufnahmen aus dem Radio. ich moechte bestimmte
> Sendungen aufnehmen. Ich mache das mit
> 
> sox -t ossdsp -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -m s -
> "record-`date +%Y%m%d-%T`.mp3"
> 
> Wie beende ich denn x Minuten/Stunden spaeter denn genau den Job?

brechstange:
	40 5	* * *	killall sox

elegant:

	shell wrapper fuer das zeuchs

	echo $PID >/var/run/mypid
	exec sox ....


	40 5 * * * kill `cat /var/run/mypid`
-- 
Florian Lohoff                  flo at rfc822.org             +49-171-2280134
                        Heisenberg may have been here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20030602/9ed1307d/attachment.sig>


More information about the Linux mailing list