LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-14-2004, 06:34 AM   #1
u4u
LQ Newbie
 
Registered: Aug 2003
Location: Pune (india)
Posts: 15

Rep: Reputation: 0
run shell script in c program


how can i run shell script through C program in red hat linux?
Suppose a script contains some commands and i want to run it thorugh C program just like as we call dos commands through SYSTEM commands in windows environment
 
Old 02-14-2004, 02:48 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Have a look at
man system
man exec


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a script run through a shell program... okeyla Linux - Newbie 1 09-15-2005 10:06 AM
Creating a shell script to run Java program paultaylor Programming 7 11-12-2004 03:11 PM
Shell script to run pl/sql script. colly Linux - General 1 09-09-2004 06:49 AM
Run interactive program in shell escargot22026 Programming 4 08-14-2004 11:59 PM
how to run a shell script type program redragon7964 Linux - Newbie 1 04-06-2004 02:03 AM


All times are GMT -5. The time now is 07:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration