Re: Ecasound-list Digest, Vol 105, Issue 2
"Charlie Laub" <[email protected]> Sun, 8 Oct 2017 09:56:50 -0700
| Newsgroups | gmane.comp.audio.ecasound.general |
|---|---|
| Message-ID | <[email protected]> |
I have called ecasound from scripts and I also had to set the term variable to something for it to work properly. It helps to turn on the -ddd (high verbosity debug info) output to see what is going on when there are problems by the way. Once I saw that TERM was unset and causing a problem for ecasound, I checked to see what it was when I was in a terminal on the computer, and TERM was xterm-256. After I set TERM=xterm in my script everything worked. I also found that in some cases when I was feeding long lines into ecasound I had to also set COLUMNS to a number that was larger than the longest line in the ecasound command string. Otherwise I got some errors when the line length was more than the default line length(e.g. 80 characters). -Charlie ---------------------------------------------------------------------- Message: 1 Date: Sat, 7 Oct 2017 15:23:57 -0700 From: rocco <[email protected]> To: [email protected] Subject: Re: [ecasound] Running ecasound in cron Message-ID: <[email protected]> Content-Type: text/plain; charset=utf-8; format=flowed On 10/07/2017 03:32 AM, ??????? wrote: > Hello, > I've been trying to run ecasound in cron with such arguments: > /usr/bin/ecasound -B:rtlowlatency -b:256 -f:s32_le,2,48000 > -i:alsahw,1,0 -o:alsa But nothing happens. If I run it from the shell > it works as expected. > What I need to do in order to run ecasound in cron? > -- > > Best regards, Dmitry Misharov I think this has to do with what I ran into recently. I was trying to run ecasound from a tcl/tk script by clicking an icon on my desktop and it wouldn't work (I think ecasound would exit immediately). But when I ran the tcl/tk script from a shell, it ran fine. I had to set the TERM variable. I did a lot of googling to find out how to set it correctly, but didn't get any specific details so I just set TERM to 'linux' (without the quotes) and hope that will suffice when running my program from system to system. It works fine on my system. If this works, and you find more info on how to properly set TERM, let me know Hope this helped, Rocco ------------------------------ Message: 2 Date: Sun, 08 Oct 2017 06:27:02 +0000 From: ??????? <[email protected]> To: rocco <[email protected]> Cc: [email protected] Subject: Re: [ecasound] Running ecasound in cron Message-ID: <CAFLA9pr2Tr98kKz0bGySeeMGNOApZcHXM6QiAAhooqA-TB+Pug@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Thank you Rocco, your advice helped. I set TERM variable to xterm and it started to work from cron, so final commad looks: TERM=xterm /usr/bin/ecasound -B:rtlowlatency -b:256 -f:s32_le,2,48000 -i:alsahw,1,0 -o:alsa & ??, 8 ???. 2017 ?. ? 0:46, rocco via Ecasound-list < [email protected]>: > On 10/07/2017 03:32 AM, ??????? wrote: > > Hello, > > I've been trying to run ecasound in cron with such arguments: > > /usr/bin/ecasound -B:rtlowlatency -b:256 -f:s32_le,2,48000 > > -i:alsahw,1,0 -o:alsa But nothing happens. If I run it from the > > shell it works as expected. > > What I need to do in order to run ecasound in cron? > > -- > > > > Best regards, Dmitry Misharov > > I think this has to do with what I ran into recently. I was trying to > run ecasound from a tcl/tk script by clicking an icon on my desktop > and it wouldn't work (I think ecasound would exit immediately). But > when I ran the tcl/tk script from a shell, it ran fine. > > I had to set the TERM variable. I did a lot of googling to find out > how to set it correctly, but didn't get any specific details so I just > set TERM to 'linux' (without the quotes) and hope that will suffice > when running my program from system to system. It works fine on my system. > > If this works, and you find more info on how to properly set TERM, let > me know > > Hope this helped, > Rocco > > > ---------------------------------------------------------------------- > -------- Check out the vibrant tech community on one of the world's > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Ecasound-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ecasound-list > -- Best regards, Dmitry Misharov -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ---------------------------------------------------------------------------- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ------------------------------ Subject: Digest Footer _______________________________________________ Ecasound-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ecasound-list ------------------------------ End of Ecasound-list Digest, Vol 105, Issue 2 ********************************************* ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ecasound-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ecasound-list