Esempio n. 1
0
    def exec2(self, command):
        """
        Run a command inside the container.

        ::

            from fabtools.require.openvz import container

            with container('foo') as ct:
                res = ct.exec2('hostname')

        .. warning:: the command will be run as **root**.

        """
        return vz.exec2(self.ctid, command)
Esempio n. 2
0
    def exec2(self, command):
        """
        Run a command inside the container.

        ::

            from fabtools.require.openvz import container

            with container('foo') as ct:
                res = ct.exec2('hostname')

        .. warning:: the command will be run as **root**.

        """
        return vz.exec2(self.ctid, command)
Esempio n. 3
0
 def exec2(self, command):
     return vz.exec2(self.ctid, command)