Author Topic: Insert file or system clipboard contents into current file at cursor?  (Read 6932 times)

timur

  • Senior Community Member
  • Posts: 204
  • Hero Points: 3
I have a bash script that outputs a few lines of text, and it can also dump that text into the Linux system clipboard or output the text to a file.

After running that script with the shell() command, how can I insert that output into the current file and the current cursor location?  I believe I need to do one of the following:

1. Pipe the output of the script, and then paste that pipe into the current file
2. Read the contents of the text file into the current file
3. Paste the contents of the system clipboard into the current file

I can't figure out how to do any of these things.
« Last Edit: August 31, 2018, 09:09:28 PM by timur »

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Insert file or system clipboard contents into current file at cursor?
« Reply #1 on: August 31, 2018, 11:25:46 PM »
Try this
   _mdi.p_child.get("test5.e");

or see _PipeProcess.