Search Results

Search: Posts Made By: nekoj
Forum: Programming 06-18-2012
2,104
Posted By nekoj
no it's not a homework
no it's not a homework
Forum: Programming 06-18-2012
2,104
Posted By nekoj
but how to do that? can you post code?
but how to do that? can you post code?
Forum: Programming 06-18-2012
2,104
Posted By nekoj
can you write the code please? thanks
can you write the code please?
thanks
Forum: Programming 06-18-2012
2,104
Posted By nekoj
#include <stdio.h> #include <stdlib.h> ...
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main () {
pid_t childpid= 0;
int i, n=4;

for (i= 1; i< n; i++)
if (childpid= fork()) break;
wait();
printf("i:%d process...
Forum: Programming 06-18-2012
2,104
Posted By nekoj
Creating more processes with fork()
Hello people

I need help

How to make ONE process to create MORE (not one) processes with fork(). I tried several codes but do not work.

Thanks
1,623
Posted By nekoj
I try this code, but it doesn't work ...
I try this code, but it doesn't work


$FILE=$ARGV[0];


open(FILE) or die "can't open: $!";

foreach $red(<FILE>)
{
chop ($red);
$red =~ s/$ARGV[2]/$ARGV[3];
} > $ARGV[1]; Code tags...
1,623
Posted By nekoj
Replacing text in Perl given by command line
Hi

I need to write a Perl script that the file given as first argument of the command line that will find all occurrences of the string given as the third argument of the command line and replace...
Showing results 1 to 7 of 7

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