atom-shell-commands icon indicating copy to clipboard operation
atom-shell-commands copied to clipboard

Redirecting stout to a text file

Open AWPelican opened this issue 7 years ago • 4 comments

Hey @skywind3000 I really like your work. The simplicity of this package is really nice. I was trying to redirect stout using a ">" as one of my arguments but got an error that looked like it was trying to pass the ">" to the program (in my case pylint), rather than allowing me to actually redirect stout to a text file as I was hoping.

Is there a way to do something like this that I'm not noticing? I was browsing through the pull request from @dqsully and wasn't sure if passing the whole command as a single string would help, as he suggested?

If there's a quick fix here I'm overlooking could you fill me in? Thanks again for the package!

AWPelican avatar Mar 16 '17 10:03 AWPelican

For now, I think you should be able to prefix > (and any other characters which need to be escaped) with ^. However, I just decided that I will go ahead and release my own version of this package to Atom, which largely shouldn't have issues like this, and will have (hopefully) consistent updates.

dqsully avatar Mar 16 '17 23:03 dqsully

Sorry, for replying late, This repository is looking for maintainer now, https://github.com/skywind3000/atom-shell-commands/issues/20

skywind3000 avatar Mar 18 '17 10:03 skywind3000

Ok, I see what you mean now. I will add in an option to redirect the output to a file. My mentioned fix was only for terminal mode, which you might want to try for now.

options:
  mode: 'terminal'

dqsully avatar Mar 18 '17 19:03 dqsully

Ah okay! I wondered what I was missing there. 🙂 I'll try that then. Thank you sir!

On Mar 18, 2017, at 3:08 PM, dqsully [email protected] wrote:

Ok, I see what you mean now. I will add in an option to redirect the output to a file. My mentioned fix was only for terminal mode, which you might want to try for now.

options: mode: 'terminal' — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

AWPelican avatar Mar 19 '17 00:03 AWPelican