#!/usr/bin/perl use strict; use warnings; use IPC::Open2; my $pid = open2(my $OUT, my $IN, "/bin/sed", "s/h/H/"); print $IN "hallo\n"; close $IN; print <$OUT>;
Output:
Hallo
In reply to Re: How to print to STDIN of a cmd and read it's STDOUT
by choroba
in thread How to print to STDIN of a cmd and read it's STDOUT
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |