I was wondering what the best way to write a perl script which acts a transparent wrapper to another command is.
ie. All lines of input from the user are passed to the program, and all lines of output from the program are returned to the user.
Also i was wondering if it would then be possible to replace the running process i.e the script, with the actual process which it was communicating with, so the script terminates and the real command continues running.