The 66-tools Suite: execl-cmdline
Author: Eric Vidal <eric@obarun.org>

66-tools

Software

obarun.org

# execl-cmdline

This command parses a command line into an execline script.

## Interface

As execlineb script:

        execl-cmdline -s { command }

- It reads the command and removes all whitespace or `no word` before executing.

- It exits with the exit code of the command

## Options

- -s : splits a command considered by execline scripting language as one word into separate words.

## Note and usage examples

execl-cmdline should be used at the end of execline scripts. If you want to run another program after the call of execl-cmdline you would need to use an if command, foreground, background or the likes.

The following command:

        execl-cmdline { /usr/bin/ntpd -d "" -S }

will result in:

        /usr/bin/ntpd "-d" "-S"

This command:

        execl-cmdline -s { /usr/bin/ntpd "-d -S" }

will result in:

        /usr/bin/ntpd "-d" "-S"

To run another program after the call of execl-cmdline program:

        foreground { execl-cmdline { /usr/bin/ntpd -d "" -S } }