Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #173817
| From | <tomas@tuxteam.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: bash NEWBIE I/O and I/O redirection problems |
| Date | 2016-10-25 11:30 +0200 |
| Message-ID | <sw6dr-3Ia-25@gated-at.bofh.it> (permalink) |
| References | <svZEZ-7Nb-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
-----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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlgPJHgACgkQBcgs9XrR2kZeQgCcDJQ/VI36kzfywE9dXCJzlLL6 v/AAnjZ9VYU1HIeA3D1vk7AnVYhKIhJB =DWmS -----END PGP SIGNATURE-----
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
bash NEWBIE I/O and I/O redirection problems Richard Owlett <rowlett@cloud85.net> - 2016-10-25 04:30 +0200
Re: bash NEWBIE I/O and I/O redirection problems "der.hans" <deb-user@LuftHans.com> - 2016-10-25 05:10 +0200
Re: bash NEWBIE I/O and I/O redirection problems "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-25 09:30 +0200
Re: bash NEWBIE I/O and I/O redirection problems "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-25 11:30 +0200
Re: bash NEWBIE I/O and I/O redirection problems Richard Owlett <rowlett@cloud85.net> - 2016-10-25 14:20 +0200
Re: bash NEWBIE I/O and I/O redirection problems <tomas@tuxteam.de> - 2016-10-25 11:30 +0200
Re: bash NEWBIE I/O and I/O redirection problems Richard Owlett <rowlett@cloud85.net> - 2016-10-25 14:20 +0200
Re: bash NEWBIE I/O and I/O redirection problems Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-25 14:10 +0200
csiph-web