|
|
|
@ -44,6 +44,8 @@ func main() { |
|
|
|
cmdLine := flag.String("cmdLine", "", "command line") |
|
|
|
cmdLine := flag.String("cmdLine", "", "command line") |
|
|
|
exitCode := flag.Int("exitCode", -1, "exit code") |
|
|
|
exitCode := flag.Int("exitCode", -1, "exit code") |
|
|
|
sessionID := flag.String("sessionId", "", "resh generated session id") |
|
|
|
sessionID := flag.String("sessionId", "", "resh generated session id") |
|
|
|
|
|
|
|
recordID := flag.String("recordId", "", "resh generated record id") |
|
|
|
|
|
|
|
|
|
|
|
shlvl := flag.Int("shlvl", -1, "$SHLVL") |
|
|
|
shlvl := flag.Int("shlvl", -1, "$SHLVL") |
|
|
|
shell := flag.String("shell", "", "actual shell") |
|
|
|
shell := flag.String("shell", "", "actual shell") |
|
|
|
|
|
|
|
|
|
|
|
@ -118,6 +120,7 @@ func main() { |
|
|
|
CmdLine: *cmdLine, |
|
|
|
CmdLine: *cmdLine, |
|
|
|
ExitCode: *exitCode, |
|
|
|
ExitCode: *exitCode, |
|
|
|
SessionID: *sessionID, |
|
|
|
SessionID: *sessionID, |
|
|
|
|
|
|
|
RecordID: *recordID, |
|
|
|
Shlvl: *shlvl, |
|
|
|
Shlvl: *shlvl, |
|
|
|
Shell: *shell, |
|
|
|
Shell: *shell, |
|
|
|
|
|
|
|
|
|
|
|
|