![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing values from sql to shell script | sachin.gangadha | Shell Programming and Scripting | 3 | 04-22-2008 11:11 PM |
| returning values from shell script to calling C program | nehamore | Shell Programming and Scripting | 2 | 02-04-2008 11:09 AM |
| passing oracle parameters back to Shell | satnamx | Shell Programming and Scripting | 4 | 01-16-2007 09:59 AM |
| Passing Values from a shell script | dhananjaysk | Shell Programming and Scripting | 6 | 04-06-2006 09:33 AM |
| passing parameters from a shell script to sqlplus | phani | Shell Programming and Scripting | 2 | 03-13-2005 08:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Passing Parameters and getting values back from a c program to Shell script
I am having a shell script which has to be called from a C program. I have to pass two parameters to this script. HOw can I do that?
eg: int main() { char st1[20]; char str2[20]; // call a shell script call_sh(str1,str2) where call_sh is the name of the shell script. then i need to get the return status of the shell script also } how can i do this Please Help me in this. |
|
|||||
|
Please read our rules and note:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly. I have deleted the other post where you ask the same question. Please do not post this question a third time. |
|
||||
|
Hello Blowtorch
Can you explain me about that with an example... I used execlp("shell script name,"arguments",0) to call my shell program. But after execution, the shell program;s value is not available to my c program. But I want that value. So how can I do that. Please explain me with an example. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|