davydany/sultan

Add background execution

Opened this issue · 4 comments

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

This is a great suggestion. I do plan to implement it as part of a future update.

bump.

Noted :-) I see 3 more upvotes... I'm tied up with a few other projects. Look for an update to this in 2 weeks.

As a workaround, you can add & to the end of your command, and get the output from result.stdout and parse it for the PID.

https://stackoverflow.com/questions/1908610/how-to-get-pid-of-background-process