Re: script question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> I have this line:
>              ALSA=`aplay --version`
>
> in a script. when I execute the script I get the message
>  line 187: --version: command not found

What's in line 187?

Do you really want to use backticks ` or should it be more like  
ALSA='aplay --version' (apostrophes)? If you want to stick to the  
backticks you should redirect aplay's output from STDERR to STDOUT:  
ALSA=`aplay --version 2>&1` (aplay 1.0.6, CentOS 4.7).

Chris
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux