Re: running arecord via ssh

2018-05-16 Thread David Margerison
On 17 May 2018 at 03:10, Pierre Frenkiel wrote: > hi, > I try to record some old vinyls with arecord, the output being > sent to my desktop via a radio transmitter/receiver couple. > > On the desktop xterm window, its works perfectly, but if I run arecord via > a ssh

Re: List words separated by comma and without duplicates

2018-04-29 Thread David Margerison
On 30 April 2018 at 04:12, Antonio A. Rendina wrote: > > If you want to improve your bash skills you can read: > http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ I suggest that to avoid poor and ancient, it would be better to read current documents written by active

Re: preferences > openbox configuration manager no start

2018-02-10 Thread David Margerison
On 28 January 2018 at 06:52, Harry Putnam wrote: > > What I'm seeing is at the lxde main menu > preferences > > openbox configuration manager > > When clicked nothing happens I just see the mouse cursor show the > `busy' icon. Nothing ever starts > > After doing a few dpkg -L

Re: unison compatibility in stretch

2017-12-12 Thread David Margerison
On 12 December 2017 at 21:16, Tony van der Hoff wrote: > On 12/12/17 08:50, Curt wrote: >> >> * workaroundable via symlink version number truncation bug >> > Thanks for your reply, Curt, but we appear to speak different languages ;) > > WVSVNTB? The mysterious "WVSVNTB"

Re: bash usage.

2017-11-05 Thread David Margerison
On 5 November 2017 at 19:17, wrote: > > Note that the mount(8) man page recommends findmnt(8) for script > usage. Findmnt is util-linux, so whether you want to use it or > not will depend a bit on your portability needs. > > Parsing mount output robustly is, of course, always a

Re: bash usage.

2017-11-04 Thread David Margerison
On 5 November 2017 at 08:31, David Margerison <del...@electrosonics.com.au> wrote: > > Demo example from an interactive bash command line on this PC: > > $ devname=/dev/sda6 ; dirname=/mnt/p/A ; if mount | grep -q -- > "$devname on $dirname" ; then echo "$de

Re: bash usage.

2017-11-04 Thread David Margerison
On 5 November 2017 at 04:55, wrote: > What about checking whether the > filesystem of a specific device is mounted at that directory? Can > that be checked easily? It can be done by inspecting the output of the 'mount' command. But keep in mind that the detail of this

Re: bash usage.

2017-10-26 Thread David Margerison
On 26 October 2017 at 21:59, Roberto C. Sánchez <robe...@debian.org> wrote: > On Thu, Oct 26, 2017 at 04:19:42PM +1100, David Margerison wrote: >> On 26 October 2017 at 12:23, Roberto C. Sánchez <robe...@debian.org> wrote: >> > >> > mountpoint

Re: bash usage.

2017-10-26 Thread David Margerison
On 26 October 2017 at 11:39, wrote: > > According to 'man mountpoint', it returns 0 if something is mounted. > So why the complaint from > if [ mountpoint $WorkingDirectory ] ? Answered here: http://mywiki.wooledge.org/BashPitfalls#if_.5Bgrep_foo_myfile.5D

Re: Editing /etc/apt/sources.list breaks update

2017-09-19 Thread David Margerison
On 16 September 2017 at 23:25, Erik Christiansen wrote: > On 16.09.17 15:44, Juha Manninen wrote: >> BTW, the reply address of this mailing list is set wrong. In some >> other lists I can click Reply and it goes to the list. Here it would >> go to the person who sent the

Re: Weird shell script behavior in a cron job

2017-09-01 Thread David Margerison
On 31 August 2017 at 04:32, James H. H. Lampert wrote: > > I added a line to echo $SHELL to my debugging log file, and > that was it: if I ran it from cron, $SHELL was /bin/sh; if I ran it from a > command line, $SHELL was /bin/bash. Be careful to correctly understand