Embedded TCP/IP stack  4.7.0

◆ fnet_shell_script()

fnet_return_t fnet_shell_script ( fnet_shell_desc_t  desc,
fnet_char_t script 
)

Executes the command line script.

Parameters
descShell service descriptor.
scriptCommand line string (null-terminated) to be executed by the shell.
Returns
This function returns:
  • FNET_OK if no error occurs.
  • FNET_ERR if an error occurs, e.g. a wrong parameter or too big length of the script.
See also
fnet_shell_script_stop

This function executes a predefined command-line script pointed by the script.
The script string may have several commands but they must be split by the FNET_SHELL_COMMAND_SPLITTER symbol.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net