Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
65 user(s) are online (48 user(s) are browsing Forums)

Members: 1
Guests: 64

sinisrus, more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Do we have an execpl replacement?

Subject: Re: Do we have an execpl replacement?
by LiveForIt on 2018/2/20 21:01:16

@AmigaBlitter

It good start to read about command.

https://linux.die.net/man/3/execvp

what is suppose to return and so on...

it should be to hard to implemented.

you execute it with command system() its priority easy to use.

http://man7.org/linux/man-pages/man3/system.3.html

all you need to is kind create new command line string, should be too hard, you need some "" symbols around args, and you need to calculate size of buffer from number of args, and number of extra symbols like "", and null terminate symbol \0.

strcpy and strcat can do that, or you use sprintf, sure there are lots more, or you can write your own.
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project