From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <angel@feht.dgtu.donetsk.ua> To: community@altlinux.ru Subject: Re: [Comm] OpenOffice print troubles References: <200410210401.34148.dead-mustdie@nm.ru> <200410212354.49876.dead-mustdie@nm.ru> <opsf9qpk2ehz2pp6@oc.peooc.net> <200410221715.14078.combr@vesna.ru> <opsf9rgojzhz2pp6@oc.peooc.net> <41790E4B.9040109@newmail.ru> Message-ID: <opsgbrd1erhz2pp6@oc.peooc.net> From: "Aleksander N. Gorohovski" <angel@feht.dgtu.donetsk.ua> Organization: DonNTU Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sat, 23 Oct 2004 17:21:27 +0400 In-Reply-To: <41790E4B.9040109@newmail.ru> User-Agent: Opera M2/7.54 (Linux, build 751) X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users <community.altlinux.ru> List-Unsubscribe: <https://lists.altlinux.ru/mailman/listinfo/community>, <mailto:community-request@altlinux.ru?subject=unsubscribe> List-Archive: <http://lists.altlinux.ru/pipermail/community> List-Post: <mailto:community@altlinux.ru> List-Help: <mailto:community-request@altlinux.ru?subject=help> List-Subscribe: <https://lists.altlinux.ru/mailman/listinfo/community>, <mailto:community-request@altlinux.ru?subject=subscribe> X-List-Received-Date: Sat, 23 Oct 2004 10:02:03 -0000 X-List-Received-Date: Sat, 23 Oct 2004 10:02:03 -0000 Archived-At: <http://lore.altlinux.org/community/opsgbrd1erhz2pp6@oc.peooc.net/> List-Archive: <http://lore.altlinux.org/community/> List-Post: <mailto:mandrake-russian@linuxteam.iplabs.ru> On Fri, 22 Oct 2004 17:42:35 +0400, Анатолий Китайкин <cetus@newmail.ru> wrote: > Aleksander N. Gorohovski пишет: > >> Сейчас проверил (у себя на M2.2) действительно есть такая "партия". >> Правда чтобы запустить ее надо использовать полный путь: >> $ /usr/lib/openoffice/program/spadmin > > > Можно проще :-) > > #!/bin/bash > while read tag; do > if echo $tag | grep '^\[Versions\]' ; then > while read tag; do > echo $tag | grep '^\[.*\]' && break > if echo $tag | grep 'OpenOffice[.]org.*=file:///' ; then > tag=$( echo $tag | sed 's/[[:cntrl:]]//' | sed > 's=^.*file:///=/=' ) > [ -x $tag/spadmin ] && $tag/spadmin > break > fi > done > break > fi > done < ~/.sversionrc > > > C уважением, > Китайкин Анатолий. Премного благодарен. Наверное, проще уже сложнее что придумать. :-)