Search Results

Search: Posts Made By: bankpro
Forum: Programming 03-28-2006
6,066
Posted By bankpro
curses.h
hi all

i get a segmentation fault error in the following program. couldn't understand why it happens. can anyone explain what is really happening.


s1.c
#include<curses.h>
main(){
int c;...
Forum: Programming 03-14-2006
7
2,670
Posted By bankpro
withreference to grep
Hello andrk

we are begginners in unix. if u can help us do it otherwise mind your own business.

i don't think so forums are just to ask only advanced questions in a subject.
Forum: Programming 03-14-2006
7
2,670
Posted By bankpro
i am not getting any out put......
i am not getting any out put......
Forum: Programming 03-14-2006
7
2,670
Posted By bankpro
grep
hi all:
what does the following command do. give me a clear explanation.

ps -ef | grep prg1 | grep -v grep | awk '{print $5}'



any help will be appreciated....

Bankpro :)
Forum: Programming 03-12-2006
3,919
Posted By bankpro
running Pro*C in unix
hai everyone :
-> I want to execute Pro*c language in the unix environment.....
-> could some one help me solving this issue,in a step-by-step manner..
-> I heard that some external...
Forum: Programming 03-09-2006
3
9,122
Posted By bankpro
atoi
i know what is the use of atoi function....
converts string to int.

but whenever i use that it gives me 0....
could any one help in this issue..

eg.
int i;
char str[20];
...
Forum: Programming 02-20-2006
1,869
Posted By bankpro
yes, i have used localtime function in my code....
yes, i have used localtime function in my code. this function is used right above the if condition inside the while loop. Even then time is not changing dynamically.
Forum: Programming 02-20-2006
16,938
Posted By bankpro
file pointer
what is the difference between a file pointer and a file descriptor.
Forum: Programming 02-20-2006
1,869
Posted By bankpro
date issue
hi all:

I want to create a new file dynamically for each day.how can i do this.

eg..
struct tm tm;
while(1)
{
if(tm.tm_hr==0 &&...
Forum: Programming 02-16-2006
3,044
Posted By bankpro
fp
actually i want to import a file pointer or file descriptor to be used in another program .

In the eg (p1.c) ,i am passing a fp through execl function to p2.c,where i am employing it to write...
Forum: Programming 02-15-2006
3,044
Posted By bankpro
using a filepointer in a diffrent program
Hi ALL :

consider the given 2 codes:

//p1.c
#include<stdio.h>
FILE * fp;
main()
{
pid_t pid;
fp=fopen("..........");
// now i am transfering the control to a new...
Forum: Programming 02-05-2006
2,770
Posted By bankpro
file pointer
hi all:
bankpro again,

i want to open a file and close it after an hour (i.e open and close the file ptr)
In the mean time i will be executing my jobs using the shell (CommandInterpreter).

...
36,630
Posted By bankpro
open a file in shell script
Hi all


How to open a file in a unix shell program.
also i want it open for an hour and run independent of other jobs.


pls help me solve this issue...
Forum: Programming 02-02-2006
8,141
Posted By bankpro
command line arguments
Hi

How to pass multi line text as a command line argument to a program.


(i.e)


./a.out hi this is sample 0 file1
where
hi this is sample should be stored in argv[1]
0 in argv[2] and so...
Forum: Programming 02-01-2006
27,538
Posted By bankpro
execl()
can anyone explain how to pass arguments of a program in execl function

pls explain with a sample code.
Forum: Programming 02-01-2006
7,428
Posted By bankpro
thanks
Hello Linuxpenguin


ur logic helped us to solve our issue.

thanks 4 ur help
Forum: Programming 01-31-2006
9
5,141
Posted By bankpro
yaa
i am afraid ,how will u use inline in C.
i think inline is available only in C++
Forum: Programming 01-31-2006
9
5,141
Posted By bankpro
no
actually,
instead of calling a function we want a macro to do the job.
i.e can we have a function in the form of a macro.
e.g

#define fun(args....)
/*code for macro...
Forum: Programming 01-30-2006
9
5,141
Posted By bankpro
macro1
thanks matrixmadan.


actually we want to overcome the time that is lost , a function
takes while visiting the stack twice.
Forum: Programming 01-30-2006
9
5,141
Posted By bankpro
macro
Can i define a macro for a function of 10 LOC.
Forum: Programming 01-24-2006
20,682
Posted By bankpro
mv working fine. thanks 4 ur help
mv working fine.

thanks 4 ur help
Forum: Programming 01-24-2006
20,682
Posted By bankpro
Renaming an executable file
HI

How to rename an executable file in unix
Forum: Programming 01-24-2006
3,106
Posted By bankpro
How to specify path of a function within execl
Consider the following scenario
program1:
main()
{

......
execl("path","function",...);
.....
}

function()
{
-----
-------
}

Now i want to include the path of function...
Forum: Programming 01-23-2006
1,768
Posted By bankpro
file ptr2.
what happens when we don't close a file pointer ?
Forum: Programming 01-23-2006
3,487
Posted By bankpro
file ptr.
Is there any way to know the filename from an available file pointer.
Showing results 1 to 25 of 43

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