On Sun, Feb 19, 2006 at 11:54:38AM +0100, Divacky Roman wrote:
> On Sat, Feb 18, 2006 at 01:43:30PM -0800, John-Mark Gurney wrote:
> > Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100:
> > > On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote:
> > > > On Sat, Feb 1
On Sat, Feb 18, 2006 at 01:43:30PM -0800, John-Mark Gurney wrote:
> Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100:
> > On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote:
> > > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote:
> > > > execl("
Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100:
> On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote:
> > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote:
> > > execl("/bin/ls", NULL);
> >
> > This is wrong. You must specify arg0 != NULL (PO
In message: <[EMAIL PROTECTED]>
Stefan Farfeleder <[EMAIL PROTECTED]> writes:
: On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote:
: > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote:
: > > execl("/bin/ls", NULL);
: >
: > This is wrong. You must spec
On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote:
> On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote:
> > execl("/bin/ls", NULL);
>
> This is wrong. You must specify arg0 != NULL (POSIX says so) and you
> must NULL-terminate the *following* list.
>
> E.g.:
>
On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote:
> On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote:
> > execl("/bin/ls", NULL);
>
> This is wrong. You must specify arg0 != NULL (POSIX says so) and you
> must NULL-terminate the *following* list.
>
> E.g.:
>
On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote:
> execl("/bin/ls", NULL);
This is wrong. You must specify arg0 != NULL (POSIX says so) and you
must NULL-terminate the *following* list.
E.g.:
execl("/bin/ls", "/bin/ls", NULL);
is what you want to do.
Joerg
___
hi
this simple program
#include
#include
#include
main() {
pid_t pid;
pid = fork();
if (pid == 0)
execl("/bin/ls", NULL);
}
works differently on fbsd and on linux. on fbsd it basically ls each record in
ENV on linux it executes ls listing all files in cwd.
can someone expla
8 matches
Mail list logo