[Catalyst] Test server as a child process
Ivan Fomichev
ifomichev at gmail.com
Tue Jul 31 12:15:20 GMT 2007
2007/7/31, Peter Edwards <peter at dragonstaff.com>:
> Try using IPC::Run. I can see the "You can connect" message when using it to
> run scripts/myapp_server.pl (I guess it goes through ptys?)
I've found the root of the evil.
IPC::Run won't help here :-(
The pipe is not autoflushed.
If you put '$|++' in script/myapp_server.pl, everything works all right.
BTW, is there a way to force autoflush for a Perl script executed in a
child process, e. g. through environment variables, command line
options or whatever?
Regards,
Ivan
More information about the Catalyst
mailing list