[exim] Re: Pipe transport and script (shebang)

2023-08-29 Thread George L. Yermulnik via Exim-users
Hello! On Tue, 29 Aug 2023 at 17:14:33 (+), Slavko via Exim-users wrote: > I don't know how bash deals with autoexport, but i find diference: > + when i unset PATH variable, the env can find python (and others) > + when i set PATH to empty (or other) value, the env fails "undefined var" !=

[exim] Re: Pipe transport and script (shebang)

2023-08-29 Thread Slavko via Exim-users
Dňa 29. augusta 2023 16:34:24 UTC používateľ Jeremy Harris via Exim-users napísal: >Does your shell auto-export a set variable to the environment? >Or does it stay as an internal variable, leaving the PATH >in the environment unchanged? I don't know how bash deals with autoexport, but i find di

[exim] Re: Pipe transport and script (shebang)

2023-08-29 Thread Jeremy Harris via Exim-users
On 28/08/2023 11:57, Slavko via Exim-users wrote: I tried to emulate that from shell by setting PATH variable to the same value as in transport, then i tried to clear it at all, but scripts runs without problem, i tried to find something in env's man page, but i fail... Does your shell auto-exp

[exim] Re: Pipe transport and script (shebang)

2023-08-29 Thread Andreas Metzler via Exim-users
On 2023-08-28 Slavko via Exim-users wrote: [...] > The only changes which i did, are -- i add path option to transport: > path = /my/scripts/path Hello, So you tell it to search *exclusively* there. > I changed command name to relative (without path) in redirect router: > data = |scri

[exim] Re: Pipe transport and script (shebang)

2023-08-28 Thread Slavko via Exim-users
Dňa 28. augusta 2023 12:01:49 UTC používateľ Andrew C Aitchison napísal: >> I guess that and your first change meant that /usr/bin/env could no longer >> find pthyon3. > >Sorry, I meant to add > because env uses path. Yes, that was my first idea too, but as i wrote, already, i s

[exim] Re: Pipe transport and script (shebang)

2023-08-28 Thread Andrew C Aitchison via Exim-users
On Mon, 28 Aug 2023, Andrew C Aitchison wrote: On Mon, 28 Aug 2023, Slavko via Exim-users wrote: Hi all, recently i decide to improve my pipe transport for reports processing to allow relative commands and i go into problems. It was worked without problems with absolute script path for long t

[exim] Re: Pipe transport and script (shebang)

2023-08-28 Thread Andrew C Aitchison via Exim-users
On Mon, 28 Aug 2023, Slavko via Exim-users wrote: Hi all, recently i decide to improve my pipe transport for reports processing to allow relative commands and i go into problems. It was worked without problems with absolute script path for long time. I solved it, but i want to know why that hap