vim /home/$USER/.bashrc
DIRETORIO_STREAM_RECORDER=/home/$USER/SINAPSES/playback_recorder
alias gravar89FM="$DIRETORIO_STREAM_RECORDER/venv/bin/python $DIRETORIO_STREAM_RECORDER/record_internet_radio_streaming.py --horario_livre=True"
alias converterAacToMp3_Todas="for f in *.aac; do ffmpeg -i "$f" -acodec libmp3lame -ab 256k "$f.mp3"; done"
:x
Após basta chamar da linha de comando:
usuario@computer:~$ gravar89FM
Caso queira converter todas as músicas em *.aac para *.mp3 em um diretório:
usuario@computer:~$ converterAacToMp3_Todas
Se preferir, basta configurar um job no crontab
If you want to, you can schedule a job on crontab
- Entry: Minute when the process will be started [0-60]
- Entry: Hour when the process will be started [0-23]
- Entry: Day of the month when the process will be started [1-28/29/30/31]
- Entry: Month of the year when the process will be started [1-12]
- Entry: Weekday when the process will be started [0-6] [0 is Sunday]
every each x minute = */x
So according to this spec 0 14 * * 0 would run 14:00 every Sunday.