Author Topic: VSE 16: How Do I Send STDIN To VS ?  (Read 1453 times)

tinker123

  • Community Member
  • Posts: 93
  • Hero Points: 3
VSE 16: How Do I Send STDIN To VS ?
« on: February 06, 2015, 03:41:52 pm »
SlickEdit 2011 (v16.0.3.0 64-bit)

I'm running VSE 16 on RHEL 6.  How can I redirect STDIN to VS?

This does not work:

$ ~jtest/bin/somescript somearg | vs

Thanks Much



Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5177
  • Hero Points: 428
Re: VSE 16: How Do I Send STDIN To VS ?
« Reply #1 on: February 06, 2015, 11:10:12 pm »
You'll need to do this in two steps. Redirect to a temp file first. SlickEdit doesn't support piping from the command line as an input file.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2934
  • Hero Points: 438
Re: VSE 16: How Do I Send STDIN To VS ?
« Reply #2 on: February 07, 2015, 12:38:54 am »
You can also use a trick like this.  SlickEdit will auto-reload the file if you move focus away and then back to the editor, so you don't have to wait for the entire operation to complete before you can start studying the results.
Code: [Select]
find / -name "*.a" | tee /tmp/archives.txt | vs /tmp/archives.txt
You could also just run the script in SlickEdit's build window.
Code: [Select]
vs "-#concur-command find / -name '*.a'"