Thread View: comp.unix.programmer
1 messages
1 total messages
Started by Rudrakshala Purushotham
Tue, 23 Oct 1990 12:15
execl -- fails with ENOEXEC (Exec Format error)
Author: Rudrakshala Purushotham
Date: Tue, 23 Oct 1990 12:15
Date: Tue, 23 Oct 1990 12:15
26 lines
1044 bytes
1044 bytes
I have a problem with the following code:
...
execl ("/usr/local/bin/Rnmail", "Rnmail", "name@something", (char *)0);
perror ("execl");
...
results in:
execl: Exec format error
where as
...
execl ("/bin/sh", "-c", "Rnmail", "name@something", (char *)0);
perror ("sh");
...
works fine.
Can somebody explain me this behaviour? I am using UNIX System V Rel 3.0
--
R. Purushotham Email: rudrak@saphir.cl.bull.fr
F7 1 D5, BULL SA, Tel Off: 34627000 ext 3928
78340 Les Clayes sous Bois FRANCE Tel Res: 34604752
=======================================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads