Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2005-03-14
1
Medium Priority
?
252 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
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

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Simple Linear Regression

581 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