Ubuntu Server 14.04中的R-将文件写入samba共享,其中目录受用户/密码保护 [英] R in Ubuntu Server 14.04 - Writing file to a samba sharing in which a directory is protected by user/pass

查看:126
本文介绍了Ubuntu Server 14.04中的R-将文件写入samba共享,其中目录受用户/密码保护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

参数:

x:要写出的数据,通常是原子向量.

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

file:连接或命名要写入的文件的字符串.如果为",则打印到标准输出连接.如果为"| cmd",则输出将通过管道传递给"cmd"给出的命令.

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’.

我不知道属性文件"是否存在当写"| cmd"时在Ubuntu服务器或其他服务器上启动终端,但我无法使其工作

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

希望您有美好的一天!

推荐答案

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

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

完整的解决方案位于 R-write()a归档到SAMBA共享

这篇关于Ubuntu Server 14.04中的R-将文件写入samba共享,其中目录受用户/密码保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆