Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

automatically copy output from text file

by perlnoobster (Sexton)
on Sep 27, 2012 at 10:16 UTC ( #995962=perlquestion: print w/replies, xml ) Need Help??
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://995962]
Approved by marto
help
Chatterbox?
[Discipulus]: Tanktalus my comment was about how to fork & join in tk?
[marioroy]: Oh, I've might of missed Discipulus's earlier response. I had gone to bed.
[Tanktalus]: ah, I don't even have the perlmonks site open in my browser :)
Tanktalus is chatting through his cbstats application :)
[marioroy]: Perl is so much fun.
[Discipulus]: Tanktalus i recently started a Meditation about marioroy's MCE suit of modules, but is even better to see a practical question answered than responses to my meditation
[Discipulus]: good night mario!
[Tanktalus]: yeah, I saw you post about MCE - the concept looks really really cool. I wonder how well it plays with Coro :)
[Lady_Aleena]: Hi guys. I asked this earlier but got no answer. Why is this dying at -exec: my @music_times = qx(find ~/Music/Albums/ -type f -iname '*.mp3' -exec mp3info -p "%S\n" {} \;);
[Lady_Aleena]: The error find: missing argument to `-exec'

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-04-23 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.