Function exec

Source
pub fn exec(command: &str, options: OptionVec<SyncOption>) -> Output
Expand description

Execute a program. This is often useful when combined with mouse::behave_screen_edge to do things like locking your screen.

§Options

  • SyncOption::Sync Block until the child process exits. The child process status is then passed to the parent process which copies it.

§Examples