Re: Syntax Help on a Bash Script

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



Thanks for the help thus far.  Have tried recommendations on the error 
line and still am getting the error.  Oh well, its late so I'm going to 
stop trying tonight and will take this up again in the AM.

Bob


On 05/03/2011 11:49 PM, Andrew Harley wrote:
> On Tue, 2011-05-03 at 23:33 -0500, Robert wrote:
>> MYSQL='which mysql'
> Also this line should use either backticks or $() command substitution
> instead:
>
> For example:
>
> [andrew@savoy ~]$ MYSQL='which mysql'
> [andrew@savoy ~]$ echo $MYSQL
> which mysql
> [andrew@savoy ~]$ MYSQL=$(which mysql)
> [andrew@savoy ~]$ echo $MYSQL
> /usr/bin/mysql
> [andrew@savoy ~]$ MYSQL=`which mysql`
> [andrew@savoy ~]$ echo $MYSQL
> /usr/bin/mysql
>
> Cheers!
>
> --
>
> Andy
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
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