[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: Debugging execve problems]
From: |
Samuel Thibault |
Subject: |
Re: [Fwd: Debugging execve problems] |
Date: |
Wed, 4 Jan 2012 18:12:45 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Svante Signell, le Wed 04 Jan 2012 16:44:20 +0100, a écrit :
> #!/bin/sh
> IXBIN=/home/srs/DEBs/icon/debugging_icon/iconx
> IXLCL=`echo $0 | sed 's=[^/]*$=iconx='`
Ah, the executed thing is a shell script, not a binary. Ok, it's really
the same issue as Emilio was fixing some time ago, and reduces to this:
test.c:
int main(int argc, char *argv[]) {
char *t[] = {"test.sh", NULL};
execv("test.sh", t);
perror("execve");
return 0;
}
test.sh:
#!/bin/sh
echo I'm $0
test.sh gets /dev/fd/3, which is not helpful for the IXLCL computation
above.
Samuel
- [Fwd: Debugging execve problems], Svante Signell, 2012/01/04
- Re: [Fwd: Debugging execve problems],
Samuel Thibault <=
- RE: [Fwd: Debugging execve problems], Svante R Signell, 2012/01/04
- RE: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Samuel Thibault, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/07
- Re: [Fwd: Debugging execve problems], Svante Signell, 2012/01/08