7 lines
278 B
Bash
Executable file
7 lines
278 B
Bash
Executable file
#!/bin/bash
|
|
BOOT_ID=$(cat /proc/sys/kernel/random/boot_id)
|
|
LOG_FILE="${HOME}/${BOOT_ID}-session.log"
|
|
SCRIPT_PATH="$(realpath "$(dirname "$0")/runtest.sh")"
|
|
|
|
echo "[+] Starting session logging to $LOG_FILE"
|
|
exec script -q "$LOG_FILE" --return --flush --command "$SCRIPT_PATH $*"
|