[CentOS] script question
Christoph Neuhaus
nihil14 at gmail.comThu Jun 4 13:59:41 UTC 2009
- Previous message: [CentOS] script question
- Next message: [CentOS] script question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Previous message: [CentOS] script question
- Next message: [CentOS] script question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list