Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

Shell.WriteInputText

Writes a text to input stream.

Component Version macOS Windows Linux Server iOS SDK
Shell 7.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Shell.WriteInputText"; ShellRef; Text { ; Encoding } )   More

Parameters

Parameter Description Example Flags
ShellRef The reference number from the shell. $shell
Text The text to send. "Hello World"
Encoding The text encoding for text parameter.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
"UTF-8" Optional

Result

Returns OK or error.

Description

Writes a text to input stream.
The child process and read this from the input stream.
Please make sure you use right line endings and encoding.

You must call Shell.Execute first to start the child process, before you send data.

Examples

Sends text to shell:

MBS( "Shell.WriteInputText"; $shell; "Hello World"; "UTF-8")

See also

Example Databases

Blog Entries

Created 11st November 2017, last changed 4th November 2019


Shell.Wait - ShowURL

Feedback: Report problem or ask question.