Search Results

Search: Posts Made By: a25khan
Forum: Programming 02-11-2004
15,050
Posted By a25khan
perderabo yeah what u said makes sense:D . i...
perderabo
yeah what u said makes sense:D . i appreciate your answer. My main questions were about the reason to use wait and does parent continue execution after the loop and your answers were...
Forum: Programming 02-11-2004
15,050
Posted By a25khan
wait system call
hi there,
i had some trivial questions about this program here. i am kinda confused with these, hope you can help me to understand here. :)

#include<stdio.h>
#include<sys/wait.h>...
Forum: Programming 02-03-2004
28,452
Posted By a25khan
Perderabo, thanks for the answer. i tried...
Perderabo,
thanks for the answer. i tried looking in /usr/include for user.h or something similar but it wasn't there. ne way i won't confuse myself at this stage for that. your answer was...
Forum: Programming 02-02-2004
28,452
Posted By a25khan
exec() system call
hi there,
i was reading about the exec() function. and if i m not wrong, exec() kills your present process and starts a new process in its place. the process id remains the same.
then it says if...
Forum: Programming 02-02-2004
2,784
Posted By a25khan
thanks perderabo :cool: now i m getting it :D
thanks perderabo :cool:
now i m getting it :D
Forum: Programming 02-02-2004
24,283
Posted By a25khan
perderabo actually i jus figured it out! ...
perderabo
actually i jus figured it out! thanks to you. you were a great help!
Cheers
a25khan:cool:
Forum: Programming 02-02-2004
24,283
Posted By a25khan
perderabo, yeah it makes sense that both child...
perderabo,
yeah it makes sense that both child and process will execute the 3 staments, giving 6 results.
is the output in order of child,child,child,parent,parent,parent
now can u correct me if i...
Forum: Programming 02-02-2004
2,784
Posted By a25khan
perderabo for this program i had a loop: ...
perderabo
for this program i had a loop:
if(x);
{
it='F'; stop = 'Z';
}
write(1,&it,1);
write(1,&stop,1);

the output of the program was:
abcdeFZFGHIJKLMNOPQRSTUVWXYZFZFGHIJKLMNOPQRSTUVWXYZ...
Forum: Programming 02-02-2004
1,733
Posted By a25khan
perderabo, thanks for the answer. i was just...
perderabo,
thanks for the answer. i was just makin sure :D
Cheers!
Forum: Programming 02-01-2004
24,283
Posted By a25khan
printing ppid,child pid,pid
question: for the below program
i just printed the value for pid, child pid and parent pid
why does it give me 6 values? i assume ppid is 28086
but can't figure out why there are 5 values printed...
Forum: Programming 02-01-2004
1,733
Posted By a25khan
another qustion about fork
hi there this program runs
but i m jus trying out a few things here to have an indepth knowledge about different possibilities.
can someone comment on this please.


#include<stdio.h>
#define...
Forum: Programming 02-01-2004
2,784
Posted By a25khan
scheduling a process
hi there i m having a confusion here with the looping in this example below. can someone help me out!?



#include<stdio.h>
main()
{
char it = 'a';
char stop = 'z';
...
18,297
Posted By a25khan
thanks perderabo i got it :cool:
thanks perderabo
i got it :cool:
18,297
Posted By a25khan
hi there, for instance you had it like this ...
hi there,
for instance you had it like this

int main()
{int pid = fork();
exit(0);
}

so the above code is parent process? lets assume that the fork succeeds.
u said, a complete copy of...
2,050
Posted By a25khan
user oombera, thanks for your reply. yeah i...
user oombera,
thanks for your reply. yeah i understand now that its an encrypted file, and has information for password verification and etc.
a25khan
46,947
Posted By a25khan
user oombera, thanks for your answer, ...
user oombera,

thanks for your answer,
yeah i see where are we heading from here. when i read it in my text, didn't make any sense. but when you said that "unix reads the files by using their...
18,297
Posted By a25khan
fork function
hi everyone,
have this little piece of code in order to help you understand my question
#include<stdio.h>
#include<unistd.h>

int main()
{
int i, pid;
pid = fork();

if(pid<0)
{...
46,947
Posted By a25khan
file descriptors
i m trying to learn processes in unix and i've been reading this but i don't quite get it. its regarding file descriptors. : each is a part of file pointers, they point to another area. indexes...
2,050
Posted By a25khan
shadowing
what does shadowing a file means? for instance gtty process reads /etc/psswd file and "shadow" password file(if it exists). i.e whats the difference between reading it and shadowing.
2,507
Posted By a25khan
how does unix identify C and other language code!
Hello everyone,
this question is probably simple for you ppl but i am jus a beginner and still learing. i was wondering if someone could tell me that how does unix identify different program codes...
1,714
Posted By a25khan
Avoid spam in pine?
Hi there,
for email we are using "pine" on SSH. is there any way to block junk mail on pine? i've been lookin for sumthin that allows me to block senders but all my efforts in vain. can sum1 help...
51,624
Posted By a25khan
RTM, yeah i jus figured it out! thanks for...
RTM,
yeah i jus figured it out! thanks for your answer as well :D
Cheers!
51,624
Posted By a25khan
Got it!!!!
Hi there,
actually i jus figured it out myself! when i was using the tab command to list all the prompt commands, i found the dir command. when i pressed dir it showed me the directory path in a...
51,624
Posted By a25khan
Accessing files/folders with spaces
Hi there,
our unix and windows are related. i.e. if i save a file while being on windows my unix profile would contain the same file, at the same location. so i can access all my files through...
11,017
Posted By a25khan
tikual, thanks for your detailed answers...
tikual,
thanks for your detailed answers regarding my question. especially about the set command you told me, i got to learn that it contains all the important command prompts. i am gettin to...
Showing results 1 to 25 of 35

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