[prev in list] [next in list] [prev in thread] [next in thread]
List: lxc-users
Subject: [lxc-users] why doesn't this redirection work? (lxc exec remote:container command > file.txt)
From: Tomasz Chmielewski <mangoo () wpkg ! org>
Date: 2020-06-09 12:02:16
Message-ID: 35b24b04c1b82bb0d761f5cfcc6d8f8f () wpkg ! org
[Download RAW message or body]
This works as expected (outputs to stdout):
# lxc exec lxd05:tomasztest -- hostname
tomasztest
This doesn't work as expected (output file is empty, zero bytes):
# lxc exec lxd05:tomasztest -- hostname > output.txt
# cat output.txt
# ls -l output.txt
-rw-r--r-- 1 root root 0 Jun 9 11:56 output.txt
Note! The above redirection works if both servers are "bare metal".
The above redirection DOES NOT work if the remote is "bare metal", but
commands are executed in a LXD container.
I think it did work with LXD installed from deb (i.e. v. 3.0.3).
Tomasz
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic