sultan
sultan copied to clipboard
Sultan: Command and Rule over your Shell
Hi! Been using Sultan for a little while now and i've found one part that should be improved. from api.py -> cmd -> run() ```python except Exception as e: result...
This was originally added in https://github.com/aeroxis/sultan/pull/65 And seemingly removed by https://github.com/aeroxis/sultan/pull/71/files#diff-b40d03f22a7fbe9af83a379b51281fb7L584 As far as i can tell by looking at the changeset of #71 I don't think this was in...
the semicolon breaks usage of this module on Windows if you have PowerShell or cmd shell, and probably other shells since a trailing ; is not ignored by those shells.
Is there a way to set the command that sultan runs? ``` from sultan.api import Sultan with Sultan.load() as c: c.mv(CFGFILE,NEWCFGFILE).run() ``` I run at a bash command line the...
I need in some occasions a background execution of some commands. With it it would be great to store a pid of such process too
Is possible to connect to an ssh tunnel through the ProxyCommand ssh option?
In [Streaming Results from a Command](https://sultan.readthedocs.io/en/latest/sultan-examples.html#example-13-streaming-results-from-a-command) we see: ```python with Sultan.load() as s: result = s.yum('install', '-y', 'postgresql').run(streaming=True) while True: # if full output is needed, read the pipes one...
Sultan does not throw an error on `mv` if the destination directory does not have right permissions
It appears that Sultan isn't throwing any errors if the user doesn't have permissions to do a `mv`. It simply swallows it, and the error doesn't get thrown. ```python with...
Platform: macOS Sultan version: 0.8.1 (git-clone of repo today) Failures occur w/ both Python 2.7 and Python 3.7. ```$ make tests ... FAIL: test_custom_executable (integration.sultan.test_api.SultanExecutable) ---------------------------------------------------------------------- Traceback (most recent call...
I'm using Sultan for an automated installation script internally. I would always like to see the output. Now I do that like this: ``` r = s.sh('./configure').run() print('\n'.join(r.stdout)) ``` But...