You are here

GNU/Linux

Sistemi operativ GNU/Linux

sokolnushaj's picture

A di ndonje nga ju funksionin e cronit se manxiu jeten

Cuna a ka ndonje ketu qe te ndihmon me cron se ma nxiu jeten.
Une kam bere ket scriptin ketu:

#!/bin/bash

# a simple script to capture 2 hr of tar
mplayer -vc null -vo null -ao pcm:fast:waveheader:file=stream.wav "http://tar.serverroom.us:9078/" &
# the & sets the job running in the background

sleep 1m

kill $! # kill the most recently backgrounded job
------------------------------------------------------
#improve sound quality and volume using sox
sox stream.wav -n stat > stats 2>&1 || exit 1
VOL=$(grep 'Volume' stats | sed 's/^.*[ \t]//')

Sisteme Operativë: 
Programe: 
Desktop Environment: 
Seksioni Kernel: 
Udhëzues: 
Subscribe to RSS - GNU/Linux