run_script
Run shell scripts in rust.
Overview
This library enables to invoke shell scripts based on their content. While std::process::Command works great to execute standalone command, you need more manual code to take a script text and execute it. For this purpose, this library was created.
Usage
Simply include the library and invoke the run/spawn function with the script text and run options:
extern crate run_script;
use ScriptOptions;
The library also provides the run_script!
and spawn_script!
macros for simpler usage.
extern crate run_script;
use ScriptOptions;
Installation
In order to use this library, just add it as a dependency:
[dependencies]
run_script = "*"
API Documentation
See full docs at: API Docs
Contributing
Release History
Date | Version | Description |
---|---|---|
2020-01-06 | v0.5.0 | New input/output redirection options #9 |
2019-12-24 | v0.4.0 | New spawn function and spawn_script! macro #7 |
2018-03-20 | v0.1.14 | Fix permissions issue (#2) |
2017-12-23 | v0.1.10 | New run_script! macro |
2017-11-04 | v0.1.1 | Initial release. |
License
Developed by Sagie Gur-Ari and licensed under the Apache 2 open source license.