demikernel 1.5.13

Kernel-Bypass LibOS Architecture
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import subprocess

# ======================================================================================================================


class BaseTask:
    def __init__(self, cmd: str):
        self.cmd: str = cmd

    def execute(self) -> subprocess.Popen[str]:
        return subprocess.Popen(self.cmd, shell=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)