3

I want a file watcher for Intellij Idea which would copy my file from one directory to another after I modified it.

Alex Po
  • 1,837
  • 1
  • 24
  • 28
  • Please show what you have already tried and what doesn't work for you. It should be straightforward. What OS do you use? How do you call the copy command? It may be a shell command, so you need to run the shell as the app and pass all the rest as the parameters. – CrazyCoder May 26 '17 at 10:02
  • I solved it with cat command – Alex Po May 26 '17 at 15:19
  • This is a common need, I'm surprised it is no a standard watcher. @AlexPo, can you be more precise as regards implementation with cat ? – patb Jun 09 '19 at 09:26
  • @patb I added my solution. – Alex Po Jun 25 '19 at 16:33

1 Answers1

0

I solved it like this:

enter image description here

I used Program cat then specified Argument as FileName macro, Output paths to refresh like where to save output. Then I set Create output file from stdout.

Alex Po
  • 1,837
  • 1
  • 24
  • 28