[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Shell commands in linux
--- Muthu <muthu811@xxxxxxxxxxxxxxxxxxxx> wrote:
> Hi Cheedu,
>
> The following example is a simple use of the
> "system" in C
>
> /*Start of Program*/
> #include<stdio.h>
> main()
> {
> system("clear"); /* This line executes the "clear"
> command of the shell
clear is an external program. It is not a shell
command.
Nikhil.
> }
> /*End of the Program*/
>
> HTH
>
> regards
> Muthu
>
> 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/
>
-------------------------------------------------------------------
>
>
>
-----------------------------------------------------------------------
> LIP is all for free speech. But it was created for
> a purpose - to help
> people discuss technical programming related issues
> about Linux. If
> your messages are counterproductive to this purpose,
> your privileges to
> submit messages can and will be revoked.
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com