我想知道是否可以写入受保护的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
更多推荐
发布评论