简体   繁体   English

在mrsdeploy远程会话中无法访问Linux shell

[英]No access to Linux shell in an mrsdeploy remote session

I've logged into a Microsoft R Server using mrsdeploy::remoteLogin() 我已经使用mrsdeploy::remoteLogin()登录到Microsoft R Server

Next I start a remote session with mrsdeploy::remoteCommandLine() 接下来,我使用mrsdeploy::remoteCommandLine()启动远程会话。

If I try to use system("pwd") I get no response. 如果我尝试使用system("pwd")不会得到任何响应。

I'm guessing access to the shell is blocked - does anyone know where this is controlled? 我猜想对shell的访问已被阻止-有人知道这是在哪里控制的吗?

We found the answer to this. 我们找到了答案。

The remote session does have access to the shell. 远程会话确实有权访问该外壳。 You need to use intern = TRUE to see the result. 您需要使用intern = TRUE才能查看结果。

For example system("pwd", intern = TRUE) 例如system("pwd", intern = TRUE)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM