Re: run executable

1998-06-17 Thread Henrik Nordström
Van N. Sy wrote: > How do I tell C to run an executable file located in my hard > disk. I have a SUN SparcStation5 running under SunOS 4.1.4. The standard C call is system(). It takes a command line as argument and passes this to the command processor of your operating system (the UNIX shell on

Re: run executable

1998-06-13 Thread Glynn Clements
Van N. Sy wrote: > How do I tell C to run an executable file located in my hard > disk. I have a SUN SparcStation5 running under SunOS 4.1.4. It depends upon what you mean by `run'. To change the executable which is being run by the current process, you use the exec*() functions (execl, execlp

Re: run executable

1998-06-13 Thread Nicolai Krakowiak
If I understand right, you want to call an executable from within your program? For linux it is system, (I have never had the opportunity to play with a Sun before) >From the man page (abbreviated to prevent flaming): NAME system - execute a shell command SYNOPSIS #include

Re: run executable

1998-06-13 Thread Karl F. Larsen
Not sure Van since I'm using Linux but it should be cc filename.c I think and then type a.out to run it. It is even a.out if your using ELF. On Fri, 12 Jun 1998, Van N. Sy wrote: > Hi, > > How do I tell C to run an executable file located in my hard > disk. I have a SUN SparcStation5 running