 |
linux howto - fabio de lorenzo personal informations and experiences kernel modules and software
|
| View previous topic :: View next topic |
| Author |
Message |
root Site Admin
Joined: 27 Apr 2004 Posts: 156
|
Posted: Fri Nov 14, 2008 2:50 am Post subject: fuck rai !! record rai stream in italy and copy anywhere |
|
|
get the pid with
kill $(ps ux | awk '/mplayer/ && !/awk/ {print $2}')
kill the process after x minutes
'parla con me'
Tuesday to Friday
23:10 to 24:10
minute (0-59),
hour (0-23),
day of the month (1-31),
month of the year (1-12),
day of the week (0-6 with 0=Sunday).
EXAMPLES
crontab -e = edits the crontab file to be used.
0 12 14 2 * mailx john%Happy Birthday!%Time for lunch.
10 23 * * 2-5 record_parla-con_me
#/bin/bash
MPLAYER=/usr/bin/mplayer
MMS_URL=$1
OUT_NAME=$2
function usage {
echo "please use: capture-mms.sh MMS_URL outputFileName"
exit 1
}
[ $# -lt 2 ] && usage
echo "$MPLAYER -nocache -nolirc -noconsolecontrols -dumpstream -dumpfile $2.wmv $1 < /dev/null"
$MPLAYER -nocache -nolirc -noconsolecontrols -dumpstream -dumpfile $2.wmv $1 < /dev/null &
echo "go to sleep ZZzzz"
sleep 30
echo "wake up !!"
kill $(ps ux | awk '/mplayer/ && !/awk/ {print $2}')
echo "..Done !" |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|