Re: error "sh: 1: exec: ...: File exists" with dash

2016-03-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Mar 03, 2016 at 12:12:45PM +0100, Vincent Lefevre wrote: > On 2016-03-03 11:06:55 +0100, to...@tuxteam.de wrote: > > On Thu, Mar 03, 2016 at 10:18:55AM +0100, Vincent Lefevre wrote: > > > I've got the following error in a script yesterday on a

Re: error "sh: 1: exec: ...: File exists" with dash

2016-03-03 Thread Vincent Lefevre
On 2016-03-03 12:52:34 +0100, Jean-Baptiste Thomas wrote: > EEXIST does sounds like a strange reason for exec(2) to fail. > Did you strace -f to confirm that EEXIST is indeed set by > execve() ? I could reproduce the error after regenerating my config (see my other mail about that). And yes, it co

Re: error "sh: 1: exec: ...: File exists" with dash

2016-03-03 Thread Jean-Baptiste Thomas
EEXIST does sounds like a strange reason for exec(2) to fail. Did you strace -f to confirm that EEXIST is indeed set by execve() ? I've seen weirdly-named files appear in NFS-exported file systems. I seem to remember they were related to deleted files but it might happen in other circumstances. A

Re: error "sh: 1: exec: ...: File exists" with dash

2016-03-03 Thread Vincent Lefevre
On 2016-03-03 10:18:55 +0100, Vincent Lefevre wrote: > I've got the following error in a script yesterday on a Debian 8 > machine: > > sh: 1: exec: /home/vlefevre/bin/mymaple: File exists > > where sh is dash. The command that led to this error is equivalent to: > > sh -c 'exec /home/vlefevr

Re: error "sh: 1: exec: ...: File exists" with dash

2016-03-03 Thread Vincent Lefevre
On 2016-03-03 11:06:55 +0100, to...@tuxteam.de wrote: > On Thu, Mar 03, 2016 at 10:18:55AM +0100, Vincent Lefevre wrote: > > I've got the following error in a script yesterday on a Debian 8 > > machine: > > > > sh: 1: exec: /home/vlefevre/bin/mymaple: File exists > > > > where sh is dash. The c

Re: error "sh: 1: exec: ...: File exists" with dash

2016-03-03 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Mar 03, 2016 at 10:18:55AM +0100, Vincent Lefevre wrote: > I've got the following error in a script yesterday on a Debian 8 > machine: > > sh: 1: exec: /home/vlefevre/bin/mymaple: File exists > > where sh is dash. The command that led to th

error "sh: 1: exec: ...: File exists" with dash

2016-03-03 Thread Vincent Lefevre
I've got the following error in a script yesterday on a Debian 8 machine: sh: 1: exec: /home/vlefevre/bin/mymaple: File exists where sh is dash. The command that led to this error is equivalent to: sh -c 'exec /home/vlefevre/bin/mymaple -q -s 2>&1' The "File exists" message corresponds to t