in reply to Re^2: How to give an EOF from windows Standard input?
in thread How to give an EOF from windows Standard input?
Please use <code></code> tags around code in your posts.
The console window will close as soon as the script ends. If you want the window to stay a round for a few seconds, add a sleep before it terminates:
#!/usr/local/bin/perl -w @lines= <STDIN>; print "@lines"; print"This is new \n"; sleep 60;
|
|---|