/unixutils

Utilities related to UNIX systems

Primary LanguageGoApache License 2.0Apache-2.0

ContainerSSH - Launch Containers on Demand

ContainerSSH UNIX Utilities Library

⚠⚠⚠ Deprecated: ⚠⚠⚠
This repository is deprecated in favor of libcontainerssh for ContainerSSH 0.5.

This library contains UNIX and Linux related utilities for ContainerSSH

ParseCMD

The ParseCMD() method takes a command line and parses it into an execv-compatible slice of strings.

args, err := unixutils.ParseCMD("/bin/sh -c 'echo \"Hello world!\"'")
//args will be: ["/bin/sh", "-c", "echo \"Hello world!\"]