?
Solved

hi ppl this is urgent m solve it today and get 500 points

Posted on 2005-03-14
1
Medium Priority
?
247 Views
Last Modified: 2010-04-17
hi

I am implementing a client server prog in linux fedora core3

on server :
now when i
FILE *sout;
sout =  popen("ls -l ",r) ;

and send the output to the client

 FILE *sout;
sout =  popen("some shell script",r);

i need to execute a shell script with some parameters like
so
sh scriptname params1 param2

this is to be executed using popen and get its out and send back to client

all i need to knw is to execute a shell script using open


0
Comment
Question by:pencil123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
SoyYop earned 1000 total points
ID: 13535623
Don't know, but here is a workaround that may save the day until you get a solution:

Create a wrapper .sh file and add use the exec function to execute bash with your command line (with parameters) on it.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Simple Linear Regression
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question