FrontPage 

Fuego 1.0 wiki

Login

function cmd in split format

NAME [edit section]

= NAME =
cmd

SYNOPSIS [edit section]

= SYNOPSIS =
 * cmd <command and args>

DESCRIPTION [edit section]

= DESCRIPTION =
The 'cmd' function is used to execute a command on the target.
It adds a statement to the devlog, and then calls ov_transport_cmd. It's basically a simple wrapper around that function.
It adds a statement to the devlog, and then calls [[function ov_transport_cmd|ov_transport_cmd]].  It's basically a simple wrapper
around that function.

EXAMPLES [edit section]

= EXAMPLES =
{{{#!YellowBox
  cmd "echo 'this echo is on the target'; uptime; $FUEGO_HOME/fuego.$TESTDIR/some_program"
}}}

ENVIRONMENT and ARGUMENTS [edit section]

= ENVIRONMENT and ARGUMENTS =
The arguments are passed unchanged to ov_transport_cmd.

RETURN [edit section]

= RETURN =
Returns non-zero on error

SOURCE [edit section]

= SOURCE =
Located in ''scripts/functions.sh''

SEE ALSO [edit section]

ov_transport_cmd, report_devlog
= SEE ALSO =
 * [[function ov_transport_cmd|ov_transport_cmd]], [[function_report_devlog|report_devlog]]
TBWiki engine 1.9.2 by Tim Bird