<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>This was a test for command-line vs putting it in a script. Your
cases both use putting it i n a script, so this won't tell you
anything.</p>
<p>--dave<br>
</p>
<div class="moz-cite-prefix">On 2021-11-06 10:29, Jim Ruxton via
talk wrote:<br>
</div>
<blockquote type="cite" cite="mid:398e9f03-f50f-a74b-cbac-4f65b5050b80@gmail.com">
<p>I'm not sure I am clear here what you want me to try. I tried
putting the command in a function in the script as below but it
still didn't work.<br>
</p>
<div class="moz-cite-prefix">On 2021-11-06 9:20 a.m., Dave
Collier-Brown via talk wrote:<br>
</div>
<blockquote type="cite" cite="mid:3e6f56bc-c1e1-9f76-6c4e-8ffb90594925@indexexchange.com">
<p>Does it perhaps only apply in the process that issues the
command? That would make it apply when run from the
command-line, and (appear to) fail when you run it in a
subshell, which is what happens when you call a script.</p>
<p>The man page doesn't say, so try making it a shell function,</p>
<pre>alsa_me() {</pre>
<pre> alsa_out -j secondInterface -d hw:3 -c 6
</pre>
<pre>}</pre>
<p>and then call that from the command-line<font size="2">.<br>
</font></p>
</blockquote>
The thing is I want to avoid using the command line. I want a user
to just double click the file to run it.<br>
Jim<font size="2"><br>
</font>
<blockquote type="cite" cite="mid:3e6f56bc-c1e1-9f76-6c4e-8ffb90594925@indexexchange.com">
<p><br>
</p>
<div class="moz-cite-prefix">On 2021-11-06 08:44, Jim Ruxton via
talk wrote:<br>
</div>
<blockquote type="cite" cite="mid:1711238c-e592-dccd-3c25-51060e0c96a0@gmail.com"> Ok,
just added the path /usr/bin to the command but it didn't
help. Still a mystery? <br>
<br>
Jim <br>
<br>
On 2021-11-06 8:37 a.m., James Knott via talk wrote: <br>
<blockquote type="cite">On 2021-11-06 8:25 a.m., Jim Ruxton
via talk wrote: <br>
<blockquote type="cite"><br>
<br>
I'm having trouble with a simple script. It adds a second
sounccard. This command works on the command line but not
in a script. Any ideas why? <br>
</blockquote>
<br>
Did you specify the full path to the command in the script?
<br>
--- <br>
Post to this mailing list <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:talk@gtalug.org" moz-do-not-send="true">
talk@gtalug.org</a> <br>
Unsubscribe from this mailing list <a class="moz-txt-link-freetext" href="https://gtalug.org/mailman/listinfo/talk" moz-do-not-send="true">
https://gtalug.org/mailman/listinfo/talk</a> <br>
</blockquote>
--- <br>
Post to this mailing list <a class="moz-txt-link-abbreviated
moz-txt-link-freetext" href="mailto:talk@gtalug.org" moz-do-not-send="true"> talk@gtalug.org</a> <br>
Unsubscribe from this mailing list <a class="moz-txt-link-freetext" href="https://gtalug.org/mailman/listinfo/talk" moz-do-not-send="true">
https://gtalug.org/mailman/listinfo/talk</a> <br>
</blockquote>
<pre class="moz-signature" cols="72">--
David Collier-Brown, | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:dave.collier-brown@indexexchange.com" moz-do-not-send="true">dave.collier-brown@indexexchange.com</a> | -- Mark Twain</pre>
<br>
<p><strong><em><span style="color: #212121;">CONFIDENTIALITY
NOTICE AND DISCLAIMER</span></em></strong><em><span style="color: #212121;"> : This telecommunication,
including any and all attachments, contains confidential
information intended only for the person(s) to whom it is
addressed. Any dissemination, distribution, copying or
disclosure is strictly prohibited and is not a waiver of
confidentiality. If you have received this
telecommunication in error, please notify the sender
immediately by return electronic mail and delete the
message from your inbox and deleted items folders. This
telecommunication does not constitute an express or
implied agreement to conduct transactions by electronic
means, nor does it constitute a contract offer, a contract
amendment or an acceptance of a contract offer. Contract
terms contained in this telecommunication are subject to
legal review and the completion of formal documentation
and are not binding until same is confirmed in writing and
has been signed by an authorized signatory.</span></em></p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">---
Post to this mailing list <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:talk@gtalug.org" moz-do-not-send="true">talk@gtalug.org</a>
Unsubscribe from this mailing list <a class="moz-txt-link-freetext" href="https://gtalug.org/mailman/listinfo/talk" moz-do-not-send="true">https://gtalug.org/mailman/listinfo/talk</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">---
Post to this mailing list <a class="moz-txt-link-abbreviated" href="mailto:talk@gtalug.org">talk@gtalug.org</a>
Unsubscribe from this mailing list <a class="moz-txt-link-freetext" href="https://gtalug.org/mailman/listinfo/talk">https://gtalug.org/mailman/listinfo/talk</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
David Collier-Brown, | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
<a class="moz-txt-link-abbreviated" href="mailto:dave.collier-brown@indexexchange.com">dave.collier-brown@indexexchange.com</a> | -- Mark Twain</pre>
</body>
</html>