Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Operating system 如何从ballerina内部调用OS命令_Operating System_Ballerina - Fatal编程技术网

Operating system 如何从ballerina内部调用OS命令

Operating system 如何从ballerina内部调用OS命令,operating-system,ballerina,Operating System,Ballerina,我想使用openSSL生成一些证书,并通过REST提供它们 我找不到在linux中调用openssl来生成证书并在ballerina中使用它的方法 没有找到插件 或者有没有其他方法可以在ballerina中生成证书。ballerina/crypto模块中对密钥库有一些支持 这将通过模块在ballerina-1.0.0发行版中提供。API将如下所示 # Executes an operating system command as a subprocess of the current proce

我想使用openSSL生成一些证书,并通过REST提供它们

我找不到在linux中调用openssl来生成证书并在ballerina中使用它的方法

没有找到插件

或者有没有其他方法可以在ballerina中生成证书。ballerina/crypto模块中对密钥库有一些支持

这将通过模块在ballerina-1.0.0发行版中提供。API将如下所示

# Executes an operating system command as a subprocess of the current process.
#
# + command - The name of the command to be executed
# + env - Environment variables to be set to the process
# + dir - The current working directory to be set to the process
# + args - Command arguments to be passed in
# + return - Returns a `Process` object in success, or an `Error` if a failure occurs
public function exec(@untainted string command, @untainted map<string> env = {}, 
                     @untainted string? dir = (), @untainted string... args) 
                     returns Process|Error = external;
#将操作系统命令作为当前进程的子进程执行。
#
#+命令-要执行的命令的名称
#+env-要设置到流程的环境变量
#+dir-要设置为进程的当前工作目录
#+args-要传入的命令参数
#+return-成功时返回'Process'对象,失败时返回'Error'
公共函数exec(@untainted string命令,@untainted map env={},
@未污染字符串?dir=(),@untainted string…args)
返回进程|错误=外部;

这将通过模块在ballerina-1.0.0发行版中提供。API将如下所示

# Executes an operating system command as a subprocess of the current process.
#
# + command - The name of the command to be executed
# + env - Environment variables to be set to the process
# + dir - The current working directory to be set to the process
# + args - Command arguments to be passed in
# + return - Returns a `Process` object in success, or an `Error` if a failure occurs
public function exec(@untainted string command, @untainted map<string> env = {}, 
                     @untainted string? dir = (), @untainted string... args) 
                     returns Process|Error = external;
#将操作系统命令作为当前进程的子进程执行。
#
#+命令-要执行的命令的名称
#+env-要设置到流程的环境变量
#+dir-要设置为进程的当前工作目录
#+args-要传入的命令参数
#+return-成功时返回'Process'对象,失败时返回'Error'
公共函数exec(@untainted string命令,@untainted map env={},
@未污染字符串?dir=(),@untainted string…args)
返回进程|错误=外部;