Search Results

Search: Posts Made By: rajeshomallur
Forum: Programming 11-07-2008
28,822
Posted By rajeshomallur
How to Run a Linux Command and Redirect its output to a socket in C
I have a Linux socket server program. I need to run the commands sent by the client and return the output to client. Is there a quicker way?

I tried with
ptr=popen(command, "r"); and then ...
38,253
Posted By rajeshomallur
what about the 'Key' part? I think the 'No' in...
what about the 'Key' part? I think the 'No' in the key (YesNoFlag) also will get replaced right? And again it will not skip the comment lines, correct?
Forum: Linux 05-02-2008
7,348
Posted By rajeshomallur
I found that it can be done in 3 steps.. #1....
I found that it can be done in 3 steps..

#1. remote copy your local script - this wont ask for password. i think you
# need to have same userid/passwd setup on the remote host
rcp yourscript.sh...
Forum: Linux 05-01-2008
7,348
Posted By rajeshomallur
Is it interactive? does it require entering...
Is it interactive? does it require entering password?

I need to automate this - i.e., I need to write a script which does this (run the local script on the remote box) on may be 100 boxes one by...
Forum: Linux 05-01-2008
7,348
Posted By rajeshomallur
Local shell script need to be executed on a remote linux box
I need to execute a shell script on a remote linux box. But the shell script resides on the local linux box where I am currently logged in. Is there a way to do this? I know rsh <host> <command> can...
38,253
Posted By rajeshomallur
Thanks pradee. Will this work for the below...
Thanks pradee.

Will this work for the below cases?

#This is a comment. YesNoFlag = No means it will not print
YesNoFlag = No

And I need to change No to Yes
38,253
Posted By rajeshomallur
I want to do it in around 100 files - using shell...
I want to do it in around 100 files - using shell script or a command. Not manually.
38,253
Posted By rajeshomallur
Edit a config file using shell script
I need to edit a config file using shell script. i.e., Search with the 'key' string and edit the 'value'.

For eg: below is what I have in the config file "configfile.cfg".

Key1=OldValue1...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 06:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy