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

Re: Shell commands in linux



--- Cheedu <omicron@xxxxxxx> wrote:
> 
> 
>
-------------------------------------------------------------------------
> 
> On Sat, 1 Apr 2000, Nick Hill wrote:
> 
> > clear is an external program. It is not a shell
> > command.
> 
> 	I don't know if it's not a shell command. But it
> did get executed
> when i ran it from the c program.

that's exactly why it ran. system() or for that matter
the whole pack of exec*(), run only executables. shell
commands cannot be run, as it has to be parsed by u're
shell. i think u can execute a shell script, which can
call the interpreter thru the #! tag and then run u're
shell commands.
Nikhil.
>
http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers
> 

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com