diff --git a/striker-ui-api/src/lib/consts/SERVER_PATHS.ts b/striker-ui-api/src/lib/consts/SERVER_PATHS.ts index aa918960..f5cb357f 100644 --- a/striker-ui-api/src/lib/consts/SERVER_PATHS.ts +++ b/striker-ui-api/src/lib/consts/SERVER_PATHS.ts @@ -9,6 +9,7 @@ const EMPTY_SERVER_PATHS: ServerPath = { tmp: {}, usr: { bin: { + date: {}, mkfifo: {}, rm: {}, sed: {}, diff --git a/striker-ui-api/src/lib/shell.ts b/striker-ui-api/src/lib/shell.ts index 5ffdd9ed..42e7d6b7 100644 --- a/striker-ui-api/src/lib/shell.ts +++ b/striker-ui-api/src/lib/shell.ts @@ -21,6 +21,9 @@ const systemCall = ( return stdout; }; +export const date = (...args: string[]) => + systemCall(SERVER_PATHS.usr.bin.date.self, args); + export const mkfifo = (...args: string[]) => systemCall(SERVER_PATHS.usr.bin.mkfifo.self, args);