Search Results

Search: Posts Made By: mridula
Forum: Programming 08-16-2006
28,742
Posted By mridula
how to find and replace string
hi
I wanted to find this char " ^M " in my file and replace it with blank space.
I am using Unix system.
If i give command " :%s/^M//gc " it wont work
so can anyone tell what is command to...
Forum: Programming 07-12-2006
15,893
Posted By mridula
i am retriving some file that are generated by...
i am retriving some file that are generated by the shell script <which is running on remote machine> to my own machine from where i am executing the .c file
Forum: Programming 07-12-2006
15,893
Posted By mridula
How to include shell script in C program
hi

I want to call a shell script in C program
the script is : ssh -t user@remote sh /<remote>home/user/<file_name>.sh
and other several commands

C program : Call this...
Forum: Programming 01-22-2006
4,502
Posted By mridula
retrieve IP of local machine
Hi all,

I am writing a program to retrieve the IP address or machine name of the local machine using C.
Is there any C function that does this?

ny clue will be of gr8 help!!!

thanx a lot.
Forum: Programming 01-10-2006
9,715
Posted By mridula
handling abnormal process termination
hi

i m writin a program in which i keep track of all the child processes the program has generated and if a child process has an abnormal termination i need to do certain task related to that...
Forum: Programming 01-09-2006
3,267
Posted By mridula
problem with ldap search using c
hi all

i m writin a c program to search ldap db for values.
i used the following code after search result return a value >0

if (result==1)
{
entry=ldap_first_entry(ld,msg);
...
Forum: Programming 12-11-2005
3,143
Posted By mridula
problem with while loop
hi all,
i have written the following code:
while(proceed !='Y' && proceed!='N' && proceed!='y' && proceed!='n')
{

printf("\nPress \n\t 'Y' or 'y' to continue \n\t 'N' or 'n' to cancel:");...
Forum: Programming 12-06-2005
6,945
Posted By mridula
how to handle a zombie process
hi!

i am writing a c program which has the following structure:

main()
{
child1
child1.1
child2
child2.1
}

the child1.1 and 2.1 are becoming zombies...
how can...
Forum: Programming 12-05-2005
11,120
Posted By mridula
problem with scanf
hi all!

i've written a simple c program:

#include<stdio.h>
#include<stdlib.h>
...
Forum: Programming 11-30-2005
7,074
Posted By mridula
ldap bind error
hi

Using C program i am trying to connect to ldap server i have used the method bind
syntax :
ldap_bind_s(ld,"cn=Manager,dc=example,dc=com","password")

but it is not able to bind and giving...
Forum: Slackware 11-28-2005
4,606
Posted By mridula
LDAP not getting configured!!!
hi,
i m tryin to learn ldap.
but its not getting configured.
the error msg it shows is:

LDAP configure error: BDB/HDB : Berkeley DB version incompatibe.
The BDB version i have installed is...
Forum: Programming 11-13-2005
3,134
Posted By mridula
performing a task at regular intervals
hi!

i m tryin to write a program that will perform a specific tasks after fixed interval of time.say every 1 min.
i jus donno how to go abt it.. which functions to use and so on...
i wud like to...
Forum: IP Networking 10-21-2005
23,763
Posted By mridula
how to retrieve IP address of a machine
hi

is there is any command that retrieves the IP address of a machine. Also is there any function in c that does the same.

thankx
Forum: IP Networking 10-21-2005
2,816
Posted By mridula
recv() not workin fine.....
hi !

In my program I have a structure as shown below:
struct data
{
int a;
char *b;
long c;
}str;

i have assigned the following values to it:
strcpy(str.b,"John");
str.a=10;...
Forum: Programming 10-05-2005
2,333
Posted By mridula
re:
hi

thanx for your suggestion, but allocation of large size to dname is not of any help as its not making any difference.


I tried putting a printf() statement with in the while loop that reads...
Forum: Programming 10-05-2005
2,333
Posted By mridula
re:
///////// here is the code that i am using to create the directory//////////////

#include<stdio.h>
#include<stdlib.h>
#include<sys/dir.h>
#include<malloc.h>
#include<string.h>

struct...
Forum: Programming 10-04-2005
2,333
Posted By mridula
creation of unwanted directory
hi all

i have a file with server id's and I need to create a directory corresponding to each server id listed in the text file.
eg:
id directory name
...
Forum: Programming 09-16-2005
28,712
Posted By mridula
thanx for telling abt fseek(). I agree with...
thanx for telling abt fseek().

I agree with you.
but in my case, i know the number of lines in the text file but am not aware of what the length of each line is going to be.

eg:format of the...
Forum: Programming 09-16-2005
23,998
Posted By mridula
using system cp command in C program
Hi

i used the following code to copy a directory from a source location to dest.

argv[1] contains the source loc i/p by the user.

strcpy(source,argv[1]);...
Forum: Programming 09-16-2005
28,712
Posted By mridula
jumping to a specific line in a text file
hi everybody!

i need to read a specific line from a text file using C. can any one suggest how to do it.

i m aware abt fread(), fwrite(), fseek()... but using these allows the pointer to be...
Showing results 1 to 20 of 20

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