Skip to main content
Version: 7.2402.x.x RR

io

io:cat

String io:cat(String fileName)

Gets the content of the file named fileName.

#{io:cat('/etc/passwd')}

io:exec

String io:exec(String command, String stdin)

Gets the output of the command. The data "stdin" is written to the standard input of the process.

#{io:exec('/var/opt/neviskeybox/default/dataporter/node_keypass', null)}
#{io:exec('md5sum', 'hello')}

io:sleep

void io:sleep(long milliSeconds)

Causes the current thread to sleep for the given number of milliseconds. The function is mainly used to reproduce timeout events and connection losses for debugging.

#{io:sleep(5000)}