Skip to content
API Documentation
BastionGuard™
TeeJee.Process.vala File Reference

Go to the source code of this file.

Namespaces

namespace  TeeJee
namespace  TeeJee.ProcessHelper

Functions

static void TeeJee.ProcessHelper.init_tmp ()
int TeeJee.ProcessHelper.exec_sync (string cmd, out string? std_out=null, out string? std_err=null)
int TeeJee.ProcessHelper.exec_script_sync (string script, out string? std_out=null, out string? std_err=null, bool supress_errors=false, bool run_as_admin=false, bool cleanup_tmp=true, bool print_to_terminal=false)
int TeeJee.ProcessHelper.exec_script_async (string script)
static int TeeJee.ProcessHelper.exec_user_async (string command)
string? TeeJee.ProcessHelper.save_bash_script_temp (string commands, string? script_path=null, bool force_locale=true, bool supress_errors=false)
string TeeJee.ProcessHelper.get_temp_file_path ()
static bool TeeJee.ProcessHelper.cmd_exists (string cmd_tool)
string TeeJee.ProcessHelper.get_process_exe_name (long pid=-1)
Pid TeeJee.ProcessHelper.get_process_parent (Pid process=-1)
int TeeJee.ProcessHelper.get_euid_of_process (Pid process)
Pid TeeJee.ProcessHelper.get_user_process ()
string?[] TeeJee.ProcessHelper.get_process_env (Pid pid)
string? TeeJee.ProcessHelper.get_env (string[] env, string name, string? default_value=null)
Pid[] TeeJee.ProcessHelper.get_process_children (Pid parent_pid)
void TeeJee.ProcessHelper.process_quit (Pid process_pid, bool killChildren=true)
void TeeJee.ProcessHelper.process_kill (Pid process_pid, bool killChildren=true)
void TeeJee.ProcessHelper.process_send_signal (Pid process_pid, Posix.Signal sig, bool children=true)
void TeeJee.ProcessHelper.process_set_priority (Pid procID, int prio)
int TeeJee.ProcessHelper.process_get_priority (Pid procID)
void TeeJee.ProcessHelper.process_set_priority_normal (Pid procID)
void TeeJee.ProcessHelper.process_set_priority_low (Pid procID)

Variables

string TeeJee.ProcessHelper.TEMP_DIR