From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: weird errors Date: Sun, 14 Jan 2018 12:00:19 +0100 Message-ID: References: <87a7xhmpht.fsf@gnu.org> <20180114114346.78977872@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e082237d848a5d70562ba67b1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eag1b-0000aF-Cy for guix-devel@gnu.org; Sun, 14 Jan 2018 06:00:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eag1a-0000uU-9o for guix-devel@gnu.org; Sun, 14 Jan 2018 06:00:27 -0500 In-Reply-To: <20180114114346.78977872@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel --089e082237d848a5d70562ba67b1 Content-Type: text/plain; charset="UTF-8" Hi Danny, thanks for your help 2018-01-14 11:43 GMT+01:00 Danny Milosavljevic : > Hi Catonano, > > On Sun, 14 Jan 2018 08:21:10 +0100 > Catonano wrote: > > > the line is supposed to be like > > > > TRYTOPASSILE = /path/to/some/passfile trytond-admin -c > > trytond-conf-file.conf > firstable I apologize for having written "TYTONPASSILE" Of course an F is missing, my keybord is driving me mad > > > > that is > > > > TRYTOPASSILE = /gnu/store/some-hash-passfile > > /gnu/store/some-hash-trytond-admin -c > > /gnu/stor/some-hash-trytond-conf-file.conf > > That only works with a shell - and the spaces marked below break it: > Ah, the spaces :-/ > > TRYTOPASSILE = /gnu/store/some-hash-passfile > ^ ^ > > You'd need to remove those. But even better instead do the following: > > I'd just call (setenv "/gnu/store/some-hash-passfile") instead of > starting a whole shell (it's a waste and increases the attach surface for > no reason to use a shell here). > I can certainly do like you suggest. It's cleaner But "trytond-admin" has to be called finally. Doesn't this require a shell anyway ? > > > The problem seesm to be that a call to some .trytond-admin-real can't be > > satisfied > > I don't think so. Did you check via "ls -a" ? (files whose names start > with a dot are otherwise hidden from output) > No, you' re right, it's there ~$ ls -lha /gnu/store/144hjm67pzq9x0v47hwfiabwqq219aya-trytond-4.6.2/bin/ totale 32K dr-xr-xr-x 2 root root 4,0K 1 gen 1970 ./ dr-xr-xr-x 4 root root 4,0K 1 gen 1970 ../ -r-xr-xr-x 2 root root 1,5K 1 gen 1970 trytond -r-xr-xr-x 2 root root 1,5K 1 gen 1970 trytond-admin -r-xr-xr-x 3 root root 671 1 gen 1970 .trytond-admin-real -r-xr-xr-x 2 root root 1,5K 1 gen 1970 trytond-cron -r-xr-xr-x 2 root root 805 1 gen 1970 .trytond-cron-real -r-xr-xr-x 2 root root 1,8K 1 gen 1970 .trytond-real So were the spaces the only problem ? --089e082237d848a5d70562ba67b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Danny,

thanks for your help

2018-01-14 11:43 GMT+01:00 Danny Milosavlje= vic <dannym@scratchpost.org>:
Hi Catonano,

On Sun, 14 Jan 2018 08:21:10 +0100
Catonano <catonano@gmail.com&g= t; wrote:

> the line is supposed to be like
>
> TRYTOPASSILE =3D /path/to/some/passfile trytond-admin -c
> trytond-conf-file.conf

firs= table I apologize for having written "TYTONPASSILE"

=
Of course an F is missing, my keybord is driving me mad

=C2=A0<= br>
>
> that is
>
> TRYTOPASSILE =3D /gnu/store/some-hash-passfile
> /gnu/store/some-hash-trytond-admin -c
> /gnu/stor/some-hash-trytond-conf-file.conf

That only works with a shell - and the spaces marked below break it:=

Ah, the spaces :-/
=C2=A0
=

TRYTOPASSILE =3D /gnu/store/some-hash-passfile
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^ ^

You'd need to remove those.=C2=A0 But even better instead do the follow= ing:

I'd just call (setenv "/gnu/store/some-hash-passfile") i= nstead of starting a whole shell (it's a waste and increases the attach= surface for no reason to use a shell here).

I can certainly do like you suggest. It's cleaner

But "trytond-admin" has to be called finally. Doesn't this= require a shell anyway ?

=C2=A0

> The problem seesm to be that a call to some .trytond-admin-real can= 9;t be
> satisfied

I don't think so.=C2=A0 Did you check via "ls -a" ? (f= iles whose names start with a dot are otherwise hidden from output)

No, you' re rig= ht, it's there

~$ ls -lha /gnu/store/144hjm67pzq9x0v47hwfiabwqq2= 19aya-trytond-4.6.2/bin/
totale 32K
dr-xr-xr-x 2 root root 4,0K=C2=A0= 1 gen=C2=A0 1970 ./
dr-xr-xr-x 4 root root 4,0K=C2=A0 1 gen=C2=A0 1970 = ../
-r-xr-xr-x 2 root root 1,5K=C2=A0 1 gen=C2=A0 1970 trytond
-r-xr-= xr-x 2 root root 1,5K=C2=A0 1 gen=C2=A0 1970 trytond-admin
-r-xr-xr-x 3 = root root=C2=A0 671=C2=A0 1 gen=C2=A0 1970 .trytond-admin-real
-r-xr-xr-= x 2 root root 1,5K=C2=A0 1 gen=C2=A0 1970 trytond-cron
-r-xr-xr-x 2 root= root=C2=A0 805=C2=A0 1 gen=C2=A0 1970 .trytond-cron-real
-r-xr-xr-x 2 r= oot root 1,8K=C2=A0 1 gen=C2=A0 1970 .trytond-real


So were the spaces the only problem ?
--089e082237d848a5d70562ba67b1--