2

我想做这样的事情吗?

echo "test"  | smbclient //server/share -c "cd /target/location/;put <RESULT_FROM_PIPE> <AS_THIS_FILENAME>"

任何想法?

4

1 回答 1

2

最后,这是我找到的解决方案:

echo "test"  | smbclient //server/share -c "cd /target/location/;put - <NEW_THIS_FILENAME>"

诀窍在于-stdin.

于 2016-11-03T08:51:36.610 回答