my $cv = AnyEvent::Util::run_cmd( [ $^X, -e => 'print "hello $^V\n"; exit 3' ], '>' => '/my.out', # for simplicity - somewhere that I have write access is being used '2>' => '/my.err', ); print "Started.\n"; # this goes to /my.out on windows, to the terminal on unix my $rc = $cv->recv; # this hangs on windows, returns nearly instantly on unix