Switching on/off the sound from the command line

Fritz Whittington f.whittington at att.net
Tue Oct 18 19:59:09 UTC 2005


On or about 2005-10-18 14:01, Paul Smith pulled out a trusty #2 pencil 
and scribbled:

>On 10/18/05, Andy Pieters <mailings at vlaamse-kern.com> wrote:
>  
>
>>Hi
>>    
>>
>>>: bad interpreter: No such file or directory
>>>
>>>$
>>>
>>>Paul
>>>      
>>>
>>You have to edit the very first line of that file and replace the
>>#!/bin/bash with the path to your bash binary, after that it will work.
>>
>>But in light of recent discovery, a rewrite imposes itself to skip kmix and
>>rely purly on amixer.
>>    
>>
>
>Thanks, Andy.
>
>Paul
>
>  
>
Actually, Andy's right, the path to the interpreter is incorrect.  But 
it's incorrect because the file has DOS-style CR-LF line endings.  This 
makes the path to the shell seem to be:  /bin/bash<0x0D> , which of 
course is a file that doesn't exist.

The error message that is (trying to be) printed is really:  
/bin/bash<0x0D>: bad interpreter: No such file or directory

But when it prints the <0x0D> character to the console, the cursor 
returns to the beginning of the line, leaving only the part starting 
with the colon left-justified on the screen.

Use the dos2unix utility to fix the script file.

-- 
Fritz Whittington -- TI Alum -- http://www.tialumni.org
"He not busy being born is busy dying." --Bob Dylan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3252 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051018/9ecdcc05/attachment-0001.bin>


More information about the fedora-list mailing list