|
|
|
@ -85,7 +85,7 @@
|
|
|
|
#define list_of_sockets_command "systemctl list-sockets --all --no-pager| sed -e 's/ */;/g'"
|
|
|
|
#define list_of_sockets_command "systemctl list-sockets --all --no-pager| sed -e 's/ */;/g'"
|
|
|
|
#define list_of_timers_command "systemctl list-timers --all --no-pager| sed -e 's/ */;/g'"
|
|
|
|
#define list_of_timers_command "systemctl list-timers --all --no-pager| sed -e 's/ */;/g'"
|
|
|
|
#define list_of_session_command "while IFS=\" \" read -r GET_SESSION GET_UID GET_USER GET_SEAT GET_TTY; do echo -e \"${GET_SESSION} $(loginctl session-status ${GET_SESSION} --no-page | sed -Enr \"s/^\\s*State: (.*)$/\1/p\") ${GET_UID} ${GET_USER} ${GET_SEAT} ${GET_TTY}\"; done < <(loginctl list-sessions --no-legend)"
|
|
|
|
#define list_of_session_command "while IFS=\" \" read -r GET_SESSION GET_UID GET_USER GET_SEAT GET_TTY; do echo -e \"${GET_SESSION} $(loginctl session-status ${GET_SESSION} --no-page | sed -Enr \"s/^\\s*State: (.*)$/\1/p\") ${GET_UID} ${GET_USER} ${GET_SEAT} ${GET_TTY}\"; done < <(loginctl list-sessions --no-legend)"
|
|
|
|
#define get_activate_deactivate_times(target) yon_char_append("systemctl show --timestamp=utc -p Names -p ActiveEnterTimestamp -p InactiveEnterTimestampMonotonic ",target)
|
|
|
|
#define get_activate_deactivate_times(target) yon_char_append("systemctl show --timestamp=utc -p Names -p ActiveEnterTimestamp -p InactiveEnterTimestamp ",target)
|
|
|
|
|
|
|
|
|
|
|
|
#define config_get_command(target) yon_char_append("cat ",target)
|
|
|
|
#define config_get_command(target) yon_char_append("cat ",target)
|
|
|
|
|
|
|
|
|
|
|
|
|