here's my code, the name variable and error messages are in french but you get the idea.
Not really, I don't. I have no idea what "descripteur" is and why you're writing to it, for example.
It would also help to know what you're trying to do with this command, and what it's actually doing. And maybe minor details like what your operating system is. Because if you're running linux, you could try strace -f ./command parameters to see a trace of system calls as it runs, which will tell you exactly who's waiting for what when.
---------- Post updated at 09:31 PM ---------- Previous update was at 09:03 PM ----------
This isn't right:
Not all text is strings. read() doesn't add a null to the end.
I have encountered a strange problem dealing with pipes
and forking. The program basicaly does this:
cat file | tbl | eqn | groff
Now, I have a parent process that forks children
that that exec the stuff that they should. The pipes defined
in the parent are the ones used.
The chain goes... (1 Reply)
I use read often in scripts to filter the right part into a variable like:
$ print "abc cde efg" | read k l ; print "k=$k, l=$l"
k=, l=
This works on linux and unix versions I work with. On OSX 10.4 this
doesn't work. I found a workaround but would like to know
why the original line... (5 Replies)
Basically I am trying to write a short script to report total space used on /u0? file systems. This is what I was trying to do:df -k /u0? | grep -v kbytes | awk '{ printf $2 "+" }' | sed s/.$// | bcBut it returns no output.
This works however: > A=`df -k /u0? |grep -v kbytes | awk '{ printf $2... (2 Replies)
Is there a way to know whether is pipe is opened in read or write mode.I mean is there any signal that is generated when a pipe is opened in read or write mode.
If you have some solution .please let me know ........ (2 Replies)
Hi,
Can any one please help me with this. Am struggling hard to get a solution.
I am doing telnet through a C program and getting the stdout file descriptor of the remote machine to pipe.
read() function is getting data, But whenl it receives SOH character ie. ^A ( Start of heading = Console... (2 Replies)
Could anyone tell me whats wrong whit this piping? the commands that they execute are correct. the command I am trying is ls|wc. Both processes go to the right if statement.
for(i=0;i<argc;i++){
if(i==0&&argc>1){//first command
if(pipe(pipa1)==-1)
... (2 Replies)
Hello !
I want to process a text file in order to extract desired data using sed and grep... Now I am facing a problem piping to grep... nothing happens..
The text consists of blocks of 3 lines that may (or not) contain the Desired data.
the desired data is on each 2... (4 Replies)
hi i am having issues with extra pipe.
i have a data file and i need to remove the extra pipe in the(example 4th and 7thline) in datafile. there are many other line and filed like this which i need to remove from files. The sample data is below:
270 31|455004|24/03/2010|0001235|72
271... (3 Replies)
Hi,guys:
I want to use c to implement a pipe. For example:
ps auxwww | grep fred | more
I forked three child processes. Each is responsible for each command, and pipe to next one.
for(i=0;i<2;i++)
pipe(fd)
if(child==1) // child 1
{
close(1)
dup2(fd,1)
close(fd)
}... (3 Replies)
Hi!
I'm having problems with pipes... I need comunnications with childs processes and parents, but only one child can comunnicate with parent (first child), others childs can't.
A brief of code:
if(pipe(client1r)<0){
perror("pipe");
}
... (1 Reply)
Discussion started by: serpens11
1 Replies
LEARN ABOUT DEBIAN
imager::color::float
Imager::Color::Float(3pm) User Contributed Perl Documentation Imager::Color::Float(3pm)NAME
Imager::Color::Float - Rough floating point sample color handling
SYNOPSIS
$color = Imager::Color->new($red, $green, $blue);
$color = Imager::Color->new($red, $green, $blue, $alpha);
$color = Imager::Color->new("#C0C0FF"); # html color specification
$color->set($red, $green, $blue);
$color->set($red, $green, $blue, $alpha);
$color->set("#C0C0FF"); # html color specification
($red, $green, $blue, $alpha) = $color->rgba();
@hsv = $color->hsv(); # not implemented but proposed
$color->info();
DESCRIPTION
This module handles creating color objects used by Imager. The idea is that in the future this module will be able to handle color space
calculations as well.
A floating point Imager color consists of up to four components, each in the range 0.0 to 1.0. Unfortunately the meaning of the components
can change depending on the type of image you're dealing with:
o for 3 or 4 channel images the color components are red, green, blue, alpha.
o for 1 or 2 channel images the color components are gray, alpha, with the other two components ignored.
An alpha value of zero is fully transparent, an alpha value of 1.0 is fully opaque.
METHODS
new This creates a color object to pass to functions that need a color argument.
set This changes an already defined color. Note that this does not affect any places where the color has been used previously.
rgba()
This returns the red, green, blue and alpha channels of the color the object contains.
info
Calling info merely dumps the relevant color to the log.
AUTHOR
Arnar M. Hrafnkelsson, addi@umich.edu And a great deal of help from others - see the "README" for a complete list.
SEE ALSO Imager(3), Imager::Color.
http://imager.perl.org/
perl v5.14.2 2011-06-06 Imager::Color::Float(3pm)