[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Shell commands in linux

Hi Cheedu,

	The following example is a simple use of the "system" in C

/*Start of Program*/
	system("clear");	/* This line executes the "clear" command of the shell
	system("foo");		/* This line executes a shell script called "foo" which
has execute permission*/
/*End of the Program*/



Cheedu wrote:
>         Thanx for your reply for my earlier question. But the man pages
> didn't help. Can you tell me how to use the "system " and "execve" . An
> example would be nice.
Got Slack!        Slackware Linux        http://www.slackware.com/