jack_capture contiouos new recordings

Still new to all of this? Feel free to post in any of the subforums on this site, but in this subforum newbie questions are especially encouraged!

Moderators: MattKingUSA, khz

Post Reply
Sweptr
Posts: 1
Joined: Sun Jul 05, 2020 1:30 pm

jack_capture contiouos new recordings

Post by Sweptr »

Hi.
Is there some way to make jack_capture do contiouos new recordings.?
For the moment i have this

Code: Select all

 jack_capture  $HOME/tst/cap/"$(date +%Y_%m_%d-%H_%M_%S)"
in gladish. But I would like to have them one minut in length and a new for every minute. Preferable I would like to call my script which have this code

Code: Select all

#!/usr/bin/env bash

mkdir -p ~/L/cap

while (( 0 == 0 )); do
  fn="$(date +%Y_%m_%d-%H_%M_%S)"
  jack_capture -mc -d 60 $HOME/L/cap/${fn}.wav
done

Problem is - If I call script to be started at the same time as gladish - then I have to manually reconnect it to the layout every time. I just want it to autostart.

/Sweptr
Post Reply