Did you have a look at qtp-install-spamdyke?
# determine which version is already installed
#
a4_check_installed_version(){
sdver=$(spamdyke -v 2>&1)
rc=$?
if [ "$rc" == "0" ]; then
sdverstring=$(echo "$sdver" | sed -e 's/^spamdyke //')
instver=${sdverstring%%.*}
else
instver=0
fi
}
;)
dnk wrote:
> Bingo, bango, Sugar in the gas tank.
>
>
> Works like a charm.
>
> d
>
>
> On 23-Apr-09, at 2:13 PM, Sebastian Grewe wrote:
>
>> Make that
>>
>> spamdyke -v 2>> version.txt
>>
>>
>> Cheers,
>> Sebastian
>>
>> dnk wrote:
>>> Hi there,
>>>
>>> I am writing a home brew report on my qmail machines. I would like to
>>> include the spamdyke version. So I tried:
>>>
>>> spamdyke -v >> report.txt
>>>
>>> No matter what I do, I can not get it to redirect the output to a
>>> file.
>>>
>>> D
>>>
>>> _______________________________________________
>>> spamdyke-users mailing list
>>> [email protected]
>>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>>>
>> _______________________________________________
>> spamdyke-users mailing list
>> [email protected]
>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
--
-Eric 'shubes'
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users