R在Ubuntu Server 14.04中

系统教程 行业动态 更新时间:2024-06-14 16:57:40
R在Ubuntu Server 14.04中 - 将文件写入samba共享,其中目录受user / pass保护(R in Ubuntu Server 14.04 - Writing file to a samba sharing in which a directory is protected by user/pass)

我想知道是否可以写入受保护的samba目录,到另一个用户/ pass的内部目录。 我一直在寻找具有这些功能的R包,但我还没有找到它。 现在我正在使用write()函数。 在此功能的文档中,它说:

参数:

x:要写出的数据,通常是原子矢量。

file:命名要写入的文件的连接或字符串。 如果是“”,则打印到标准输出连接。 如果是“| cmd”,则输出通过管道传送给'cmd'给出的命令。

我不明白写“| cmd”时属性“文件”是否在Ubuntu服务器中启动了终端,但是我无法使其工作

希望你拥有美好的一天!

I was wondering if writing to a protected samba directory, to a internal directory with another user/pass could be possible. I have been searching for an R package with these capabilities but I haven't found it yet. Now I'm using the write() function. In the documentation for this function, it says:

Arguments:

x : The data to be written out, usually an atomic vector.

file : A connection, or a character string naming the file to write to. If "", print to the standard output connection. If it is "|cmd", the output is piped to the command given by ‘cmd’.

I don't understand if the attribute "file" when writing "|cmd" launches the Terminal in Ubuntu server or something, but I can't make it work

Hope you have a nice day!

最满意答案

我发现它可以通过Ubuntu中的shell脚本完成。 命令是write(somefile, file = "|sh shellWriteSamba.sh")

编辑:完整的解决方案是在R - write()文件到SAMBA共享

I found it can be done via a shell script in Ubuntu. The command is write(somefile, file = "|sh shellWriteSamba.sh")

Edit: The complete solution is in R - write() a file to a SAMBA share

更多推荐

本文发布于:2023-04-13 12:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/733ef23ee4b949d25f8f4168dd82656a.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Ubuntu   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!