Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

(no subject)

From: John D. <lists(at)webcrunchers.com>
Date: Mon Dec 02 2002 - 20:57:00 EST


/*

How can I stop a process from being listed in ps? My program calls system functions (i.e. system("ls -lR")), how can I stop this internal function call from showing up with the ps command?

Also, out of curiosity, the exec{l*,v*} commands don't seem to return to the calling program, but instead exit directly back to the OS. This seems strange. Using OpenBSD 3.2 with gcc, if anyone cares. */

/*Demonstrates how execl() never returns!*/
#include <unistd.h>

int main(void) {

	printf("Good file listing:\n");
	execl("/bin/ls","ls",0);
	printf("never gets here!\n");

} Received on Mon Dec 2 20:59:21 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:31:50 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library