On 10/25/2016 4:23 AM, to...@tuxteam.de wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Oct 24, 2016 at 07:58:52AM -0500, Richard Owlett wrote:
I suspect an appropriate response would be being pointed an
*atypical* tutorial.
A Google search for "bash tutorial pipe redirect" [w/o quotes] gave
results for "normal" users. I have and odd use case. I had assumed
bash as shell but am open to using another shell if it is more
appropriate.

The following, though using bash syntax, should be considered
*PSEUDO* code.

# stdout and stderr will be a MATE terminal window
# this was required to address a problem outside scope of this post
gsettings set org.mate.media-handling automount false

Others have answered many things. Let me pick a nit:

while true
   do
     echo "Insert medium, press Enter key (or Ctrl+C to end)"
     read dummyvar

The builtin 'read' has an option -p (like 'prompt') which makes
this a bit nicer:


    read -p "Insert medium, press Enter key (or Ctrl+C to end) " dummyvar

Regards
- -- tomás

I like. Thank you



Reply via email to