Supressing an error message in bash script

Neil Cherry ncherry at linuxha.com
Sat Dec 12 03:00:38 UTC 2009


On 12/11/2009 09:40 PM, Ray Parrish wrote:
> function ArrayLoad {
>       PackageData=`"dpkg -p gedit"` 2> /dev/null

Try it without the double quotes. Does that do what you want?


-- 
Linux Home Automation         Neil Cherry       ncherry at linuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:    	Linux Smart Homes For Dummies




More information about the ubuntu-users mailing list