http://www.perlmonks.org?node_id=995962

perlnoobster has asked for the wisdom of the Perl Monks concerning the following question:

hi monks I was just wondering if the following would be possible: I run a script that generates a text file, all i require is for the output to be copied as soon as it's created instead of having to open the output text file and selecting all and copying the data. I hope that makes sense? Is it possible, if so how? Thank you :)
  • Comment on automatically copy output from text file

Replies are listed 'Best First'.
Re: automatically copy output from text file
by Anonymous Monk on Sep 27, 2012 at 10:29 UTC
    Copied where?
      hello, on the clipboard, you know how you copy and paste text etc either by pressing ctrl+c or selecting the text and copying it by right clicking (default windows options) I was just wondering if the output could be "copied" into the clipboard as opposed to manually copying the text from the file via ctrl + C or right clicking and selecting copy i hope that makes sense?