Skip to main content

remote_abort_pattern

Function remote_abort_pattern 

Source
pub fn remote_abort_pattern(command: &str) -> Option<String>
Expand description

Sanitiza trecho de command para uso best-effort em pkill -f.

Accepts alphanumerics and restricted symbols; stops at the first metacharacter dangerous. Requires at least 3 chars. Never embeds passwords (only the command pattern).