Jump to content

Recommended Posts

Posted

#!/bin/bash

PREFIX="/mnt/maxtor/air"

i=1

while [ $i -le 10 ]

do

DIR=`/bin/date +"%d-%m-%Y"`

if [ ! -d $DIR ]

then

mkdir "$PREFIX/$DIR"

fi

NAME=`/bin/date +"%d-%m-%Y_%H-%M-%S.mp3"`

FILE="$PREFIX/$DIR/$NAME"

/bin/mpegrec -b 192 -o $FILE -x "-q0 -ms"

done

Данный скрипт должен перезапускаться каждый час!

помогите плиз !

  • 3 months later...
  • 2 months later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...