Skip to main content

new_screen

Function new_screen 

Source
pub fn new_screen(name: &str, cmd: &str) -> Result<()>
Expand description

Executes a command in a new screen session.

§Arguments

  • name - The name of the screen session.
  • cmd - The command to execute.

§Returns

  • Result<()> - Ok if the command was executed successfully, otherwise an error.