You are here: Home / Projects / EVE / eveadm / eveadm.test.ubuntu1804.20200128.log

eveadm.test.ubuntu1804.20200128.log

by Elena Korytko last modified Jan 28, 2020 09:20 AM
Лог выполнения скрипта https://github.com/itmo-eve/eveadm/blob/master/eveadm.test.sh на установке Ubuntu 18.04 от 28 января 2020 г.

application log icon eveadm.test.ubuntu1804.20200128.log — application log, 144 kB (148362 bytes)

File contents

./eveadm help
A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.

Usage:
  eveadm [command]

Available Commands:
  help        Help about any command
  rkt         RKT mode
  test        Test mode
  xen         Xen mode

Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -h, --help                      help for eveadm
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution

Use "eveadm [command] --help" for more information about a command.
========================================
./eveadm help test

Execute actions on 'test' mode. For example:

eveadm test list

Usage:
  eveadm test [flags]
  eveadm test [command]

Available Commands:
  create      Run shell command with arguments in 'create' action on 'test' mode
  delete      Run shell command with arguments in 'delete' action on 'test' mode
  info        Run shell command with arguments in 'info' action on 'test' mode
  list        Run shell command with arguments in 'list' action on 'test' mode
  start       Run shell command with arguments in 'start' action on 'test' mode
  stop        Run shell command with arguments in 'stop' action on 'test' mode
  update      Run shell command with arguments in 'update' action on 'test' mode

Flags:
  -e, --env string   Setting environment variables
  -h, --help         help for test

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution

Use "eveadm test [command] --help" for more information about a command.
========================================
./eveadm test
test called
========================================
./eveadm help test create

Run shell command with arguments in 'create' action on 'test' mode. For example:

eveadm test create ps x

Usage:
  eveadm test create [flags]

Flags:
  -h, --help   help for create

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -e, --env string                Setting environment variables
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm test create
========================================
./eveadm test create ps x
========================================
./eveadm -v test create ps x
Timeout: 0s
test create called with envs: 
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:47 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28434 pts/3    Sl+    0:00 ./eveadm -v test create ps x
28439 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v test create ls
Timeout: 0s
test create called with envs: 
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v test create ls qwerty
Timeout: 0s
test create called with envs: 
Command error:  exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v test create sleep 100
Timeout: 0s
test create called with envs: 
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8504maxresident)k
0inputs+0outputs (0major+476minor)pagefaults 0swaps
========================================
time ./eveadm -v test create sleep 100 -t 1
Timeout: 1m0s
test create called with envs: 
Command error:  signal: killed
Command error:  context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.00elapsed 0%CPU (0avgtext+0avgdata 8564maxresident)k
0inputs+0outputs (0major+479minor)pagefaults 0swaps
========================================
./eveadm -v test create date
Timeout: 0s
test create called with envs: 
Stdout:
Вт янв 28 01:59:05 MSK 2020

Stderr:

========================================
./eveadm -v test create date --env LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Timeout: 0s
test create called with envs: LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Stdout:
Tue Jan 28 06:59:05 CST 2020

Stderr:

./eveadm help test delete

Run shell command with arguments in 'delete' action on 'test' mode. For example:

eveadm test delete ps x

Usage:
  eveadm test delete [flags]

Flags:
  -h, --help   help for delete

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -e, --env string                Setting environment variables
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm test delete
========================================
./eveadm test delete ps x
========================================
./eveadm -v test delete ps x
Timeout: 0s
test delete called with envs: 
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28535 pts/3    Sl+    0:00 ./eveadm -v test delete ps x
28540 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v test delete ls
Timeout: 0s
test delete called with envs: 
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v test delete ls qwerty
Timeout: 0s
test delete called with envs: 
Command error:  exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v test delete sleep 100
Timeout: 0s
test delete called with envs: 
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8520maxresident)k
0inputs+0outputs (0major+477minor)pagefaults 0swaps
========================================
time ./eveadm -v test delete sleep 100 -t 1
Timeout: 1m0s
test delete called with envs: 
Command error:  signal: killed
Command error:  context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8496maxresident)k
0inputs+0outputs (0major+482minor)pagefaults 0swaps
========================================
./eveadm -v test delete date
Timeout: 0s
test delete called with envs: 
Stdout:
Вт янв 28 02:01:45 MSK 2020

Stderr:

========================================
./eveadm -v test delete date --env LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Timeout: 0s
test delete called with envs: LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Stdout:
Tue Jan 28 07:01:45 CST 2020

Stderr:

./eveadm help test info

Run shell command with arguments in 'info' action on 'test' mode. For example:

eveadm test info ps x

Usage:
  eveadm test info [flags]

Flags:
  -h, --help   help for info

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -e, --env string                Setting environment variables
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm test info
========================================
./eveadm test info ps x
========================================
./eveadm -v test info ps x
Timeout: 0s
info called with envs: 
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28595 pts/3    Sl+    0:00 ./eveadm -v test info ps x
28600 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v test info ls
Timeout: 0s
info called with envs: 
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v test info ls qwerty
Timeout: 0s
info called with envs: 
Command error:  exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v test info sleep 100
Timeout: 0s
info called with envs: 
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8408maxresident)k
0inputs+0outputs (0major+476minor)pagefaults 0swaps
========================================
time ./eveadm -v test info sleep 100 -t 1
Timeout: 1m0s
info called with envs: 
Command error:  signal: killed
Command error:  context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8588maxresident)k
0inputs+0outputs (0major+477minor)pagefaults 0swaps
========================================
./eveadm -v test info date
Timeout: 0s
info called with envs: 
Stdout:
Вт янв 28 02:04:25 MSK 2020

Stderr:

========================================
./eveadm -v test info date --env LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Timeout: 0s
info called with envs: LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Stdout:
Tue Jan 28 07:04:25 CST 2020

Stderr:

./eveadm help test list

Run shell command with arguments in 'list' action on 'test' mode. For example:

eveadm test list ps x

Usage:
  eveadm test list [flags]

Flags:
  -h, --help   help for list

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -e, --env string                Setting environment variables
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm test list
========================================
./eveadm test list ps x
========================================
./eveadm -v test list ps x
Timeout: 0s
test list called with envs: 
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28680 pts/3    Sl+    0:00 ./eveadm -v test list ps x
28685 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v test list ls
Timeout: 0s
test list called with envs: 
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v test list ls qwerty
Timeout: 0s
test list called with envs: 
Command error:  exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v test list sleep 100
Timeout: 0s
test list called with envs: 
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8544maxresident)k
0inputs+0outputs (0major+475minor)pagefaults 0swaps
========================================
time ./eveadm -v test list sleep 100 -t 1
Timeout: 1m0s
test list called with envs: 
Command error:  signal: killed
Command error:  context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8568maxresident)k
0inputs+0outputs (0major+475minor)pagefaults 0swaps
========================================
./eveadm -v test list date
Timeout: 0s
test list called with envs: 
Stdout:
Вт янв 28 02:07:05 MSK 2020

Stderr:

========================================
./eveadm -v test list date --env LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Timeout: 0s
test list called with envs: LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Stdout:
Tue Jan 28 07:07:05 CST 2020

Stderr:

./eveadm help test start
Run shell command with arguments in 'start' action on 'test' mode. For example:

eveadm test start ps x

Usage:
  eveadm test start [flags]

Flags:
  -h, --help   help for start

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -e, --env string                Setting environment variables
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm test start
========================================
./eveadm test start ps x
========================================
./eveadm -v test start ps x
Timeout: 0s
test start called with envs: 
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28740 pts/3    Sl+    0:00 ./eveadm -v test start ps x
28745 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v test start ls
Timeout: 0s
test start called with envs: 
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v test start ls qwerty
Timeout: 0s
test start called with envs: 
Command error:  exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v test start sleep 100
Timeout: 0s
test start called with envs: 
Stdout:

Stderr:

0.00user 0.00system 1:40.01elapsed 0%CPU (0avgtext+0avgdata 8544maxresident)k
0inputs+0outputs (0major+477minor)pagefaults 0swaps
========================================
time ./eveadm -v test start sleep 100 -t 1
Timeout: 1m0s
test start called with envs: 
Command error:  signal: killed
Command error:  context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8560maxresident)k
0inputs+0outputs (0major+477minor)pagefaults 0swaps
========================================
./eveadm -v test start date
Timeout: 0s
test start called with envs: 
Stdout:
Вт янв 28 02:09:45 MSK 2020

Stderr:

========================================
./eveadm -v test start date --env LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Timeout: 0s
test start called with envs: LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Stdout:
Tue Jan 28 07:09:45 CST 2020

Stderr:

./eveadm help test stop
Run shell command with arguments in 'stop' action on 'test' mode. For example:

eveadm test stop ps x

Usage:
  eveadm test stop [flags]

Flags:
  -h, --help   help for stop

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -e, --env string                Setting environment variables
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm test stop
========================================
./eveadm test stop ps x
========================================
./eveadm -v test stop ps x
Timeout: 0s
test stop called with envs: 
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28803 pts/3    Sl+    0:00 ./eveadm -v test stop ps x
28808 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v test stop ls
Timeout: 0s
test stop called with envs: 
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v test stop ls qwerty
Timeout: 0s
test stop called with envs: 
Command error:  exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v test stop sleep 100
Timeout: 0s
test stop called with envs: 
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8412maxresident)k
0inputs+0outputs (0major+477minor)pagefaults 0swaps
========================================
time ./eveadm -v test stop sleep 100 -t 1
Timeout: 1m0s
test stop called with envs: 
Command error:  signal: killed
Command error:  context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8480maxresident)k
0inputs+0outputs (0major+479minor)pagefaults 0swaps
========================================
./eveadm -v test stop date
Timeout: 0s
test stop called with envs: 
Stdout:
Вт янв 28 02:12:26 MSK 2020

Stderr:

========================================
./eveadm -v test stop date --env LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Timeout: 0s
test stop called with envs: LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Stdout:
Tue Jan 28 07:12:26 CST 2020

Stderr:

./eveadm help test update
Run shell command with arguments in 'update' action on 'test' mode. For example:

eveadm test update ps x

Usage:
  eveadm test update [flags]

Flags:
  -h, --help   help for update

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
  -e, --env string                Setting environment variables
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm test update
========================================
./eveadm test update ps x
========================================
./eveadm -v test update ps x
Timeout: 0s
test update called with envs: 
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28863 pts/3    Sl+    0:00 ./eveadm -v test update ps x
28868 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v test update ls
Timeout: 0s
test update called with envs: 
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v test update ls qwerty
Timeout: 0s
test update called with envs: 
Command error:  exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v test update sleep 100
Timeout: 0s
test update called with envs: 
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8460maxresident)k
0inputs+0outputs (0major+473minor)pagefaults 0swaps
========================================
time ./eveadm -v test update sleep 100 -t 1
Timeout: 1m0s
test update called with envs: 
Command error:  signal: killed
Command error:  context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.00elapsed 0%CPU (0avgtext+0avgdata 8536maxresident)k
0inputs+0outputs (0major+475minor)pagefaults 0swaps
========================================
./eveadm -v test update date
Timeout: 0s
test update called with envs: 
Stdout:
Вт янв 28 02:15:06 MSK 2020

Stderr:

========================================
./eveadm -v test update date --env LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Timeout: 0s
test update called with envs: LANG=zh_CN.UTF-8 TZ=Asia/Shanghai
Stdout:
Tue Jan 28 07:15:06 CST 2020

Stderr:

./eveadm help xen

Execute actions on 'xen' mode. For example:

eveadm xen list

Usage:
  eveadm xen [flags]
  eveadm xen [command]

Available Commands:
  create      Run shell command with arguments in 'create' action on 'xen' mode
  delete      Run shell command with arguments in 'delete' action on 'xen' mode
  info        Run shell command with arguments in 'info' action on 'xen' mode
  list        Run shell command with arguments in 'list' action on 'xen' mode
  start       Run shell command with arguments in 'start' action on 'xen' mode
  stop        Run shell command with arguments in 'stop' action on 'xen' mode
  update      Run shell command with arguments in 'update' action on 'xen' mode

Flags:
  -h, --help   help for xen

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution

Use "eveadm xen [command] --help" for more information about a command.
========================================
./eveadm xen
xen called
========================================
./eveadm help xen create

Run shell command with arguments in 'create' action on 'xen' mode. For example:

eveadm xen create ps x

Usage:
  eveadm xen create [flags]

Flags:
  -h, --help   help for create

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm xen create
xen create called
========================================
./eveadm xen create ps x
xen create called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28929 pts/3    Sl+    0:00 ./eveadm xen create ps x
28934 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen create ps x
Timeout: 0s
xen create called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28935 pts/3    Sl+    0:00 ./eveadm -v xen create ps x
28940 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen create ls
Timeout: 0s
xen create called
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v xen create ls qwerty
Timeout: 0s
xen create called
Command error: exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v xen create sleep 100
Timeout: 0s
xen create called
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8472maxresident)k
0inputs+0outputs (0major+472minor)pagefaults 0swaps
========================================
time ./eveadm -v xen create sleep 100 -t 1
Timeout: 1m0s
xen create called
Command error:  signal: killed
Command error: context deadline exceeded
Stdout:

Stderr:

0.00user 0.01system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8536maxresident)k
0inputs+0outputs (0major+480minor)pagefaults 0swaps
========================================
./eveadm help xen delete

Run shell command with arguments in 'delete' action on 'xen' mode. For example:

eveadm xen delete ps x

Usage:
  eveadm xen delete [flags]

Flags:
  -h, --help   help for delete

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm xen delete
xen delete called
========================================
./eveadm xen delete ps x
xen delete called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28980 pts/3    Sl+    0:00 ./eveadm xen delete ps x
28985 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen delete ps x
Timeout: 0s
xen delete called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
28986 pts/3    Sl+    0:00 ./eveadm -v xen delete ps x
28991 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen delete ls
Timeout: 0s
xen delete called
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v xen delete ls qwerty
Timeout: 0s
xen delete called
Command error: exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v xen delete sleep 100
Timeout: 0s
xen delete called
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8460maxresident)k
0inputs+0outputs (0major+478minor)pagefaults 0swaps
========================================
time ./eveadm -v xen delete sleep 100 -t 1
Timeout: 1m0s
xen delete called
Command error:  signal: killed
Command error: context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.00elapsed 0%CPU (0avgtext+0avgdata 8584maxresident)k
0inputs+0outputs (0major+478minor)pagefaults 0swaps
========================================
./eveadm help xen info

Run shell command with arguments in 'info' action on 'xen' mode. For example:

eveadm xen info ps x

Usage:
  eveadm xen info [flags]

Flags:
  -h, --help   help for info

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm xen info
info called
========================================
./eveadm xen info ps x
info called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29030 pts/3    Sl+    0:00 ./eveadm xen info ps x
29035 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen info ps x
Timeout: 0s
info called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:48 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29036 pts/3    Sl+    0:00 ./eveadm -v xen info ps x
29041 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen info ls
Timeout: 0s
info called
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v xen info ls qwerty
Timeout: 0s
info called
Command error: exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v xen info sleep 100
Timeout: 0s
info called
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8420maxresident)k
0inputs+0outputs (0major+479minor)pagefaults 0swaps
========================================
time ./eveadm -v xen info sleep 100 -t 1
Timeout: 1m0s
info called
Command error:  signal: killed
Command error: context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8608maxresident)k
0inputs+0outputs (0major+478minor)pagefaults 0swaps
========================================
./eveadm help xen list

Run shell command with arguments in 'list' action on 'xen' mode. For example:

eveadm xen list ps x

Usage:
  eveadm xen list [flags]

Flags:
  -h, --help   help for list

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm xen list
xen list called
========================================
./eveadm xen list ps x
xen list called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29098 pts/3    Sl+    0:00 ./eveadm xen list ps x
29103 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen list ps x
Timeout: 0s
xen list called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:26 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29104 pts/3    Sl+    0:00 ./eveadm -v xen list ps x
29109 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen list ls
Timeout: 0s
xen list called
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v xen list ls qwerty
Timeout: 0s
xen list called
Command error: exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v xen list sleep 100
Timeout: 0s
xen list called
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8464maxresident)k
0inputs+0outputs (0major+475minor)pagefaults 0swaps
========================================
time ./eveadm -v xen list sleep 100 -t 1
Timeout: 1m0s
xen list called
Command error:  signal: killed
Command error: context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.00elapsed 0%CPU (0avgtext+0avgdata 8496maxresident)k
0inputs+0outputs (0major+482minor)pagefaults 0swaps
========================================
./eveadm help xen start
Run shell command with arguments in 'start' action on 'xen' mode. For example:

eveadm xen start ps x

Usage:
  eveadm xen start [flags]

Flags:
  -h, --help   help for start

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm xen start
xen start called
========================================
./eveadm xen start ps x
xen start called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:27 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29160 pts/3    Sl+    0:00 ./eveadm xen start ps x
29165 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen start ps x
Timeout: 0s
xen start called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:27 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29166 pts/3    Sl+    0:00 ./eveadm -v xen start ps x
29171 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen start ls
Timeout: 0s
xen start called
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v xen start ls qwerty
Timeout: 0s
xen start called
Command error: exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v xen start sleep 100
Timeout: 0s
xen start called
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8536maxresident)k
0inputs+0outputs (0major+478minor)pagefaults 0swaps
========================================
time ./eveadm -v xen start sleep 100 -t 1
Timeout: 1m0s
xen start called
Command error:  signal: killed
Command error: context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.00elapsed 0%CPU (0avgtext+0avgdata 8584maxresident)k
0inputs+0outputs (0major+477minor)pagefaults 0swaps
========================================
./eveadm help xen stop
Run shell command with arguments in 'stop' action on 'xen' mode. For example:

eveadm xen stop ps x

Usage:
  eveadm xen stop [flags]

Flags:
  -h, --help   help for stop

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm xen stop
xen stop called
========================================
./eveadm xen stop ps x
xen stop called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:27 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29209 pts/3    Sl+    0:00 ./eveadm xen stop ps x
29214 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen stop ps x
Timeout: 0s
xen stop called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:27 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29215 pts/3    Sl+    0:00 ./eveadm -v xen stop ps x
29220 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen stop ls
Timeout: 0s
xen stop called
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v xen stop ls qwerty
Timeout: 0s
xen stop called
Command error: exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v xen stop sleep 100
Timeout: 0s
xen stop called
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8460maxresident)k
0inputs+0outputs (0major+478minor)pagefaults 0swaps
========================================
time ./eveadm -v xen stop sleep 100 -t 1
Timeout: 1m0s
xen stop called
Command error:  signal: killed
Command error: context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.01elapsed 0%CPU (0avgtext+0avgdata 8536maxresident)k
0inputs+0outputs (0major+476minor)pagefaults 0swaps
========================================
./eveadm help xen update
Run shell command with arguments in 'update' action on 'xen' mode. For example:

eveadm xen update ps x

Usage:
  eveadm xen update [flags]

Flags:
  -h, --help   help for update

Global Flags:
      --config string             config file (default is $HOME/.eveadm.yaml)
      --dir string                RKT data dir
      --insecure-options string   RKT insecure-options (default "image")
      --stage1-type string        Type of stage1 (xen or general) (default "xen")
  -t, --timeout string            Actions timeout in minutes
  -v, --verbose                   Verbose execution
========================================
./eveadm xen update
xen update called
========================================
./eveadm xen update ps x
xen update called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:27 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29259 pts/3    Sl+    0:00 ./eveadm xen update ps x
29264 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen update ps x
Timeout: 0s
xen update called
Stdout:
  PID TTY      STAT   TIME COMMAND
 1951 ?        Ss     0:00 /lib/systemd/systemd --user
 1952 ?        S      0:00 (sd-pam)
 1965 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
 1975 tty2     Ssl+   0:00 /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 1977 tty2     Sl+    0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 2000 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
 2004 tty2     Sl+    0:00 /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
 2099 ?        Ss     0:01 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
 2102 ?        Ssl    0:00 /usr/lib/gvfs/gvfsd
 2107 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
 2116 ?        Ssl    0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
 2122 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
 2125 ?        Sl     0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
 2144 tty2     Sl+    2:49 /usr/bin/gnome-shell
 2153 ?        Sl     0:00 /usr/bin/pulseaudio --start --log-target=syslog
 2162 tty2     Sl     0:00 ibus-daemon --xim --panel disable
 2164 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
 2169 ?        Sl     0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
 2188 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
 2192 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
 2199 tty2     Sl     0:00 /usr/lib/ibus/ibus-dconf
 2201 tty2     Sl     0:00 /usr/lib/ibus/ibus-x11 --kill-daemon
 2202 ?        Ssl    0:00 /usr/lib/evolution/evolution-source-registry
 2204 ?        Sl     0:00 /usr/lib/ibus/ibus-portal
 2215 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
 2228 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 2241 ?        Ssl    0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
 2245 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-daemon
 2295 ?        Sl     0:00 /usr/lib/gnome-online-accounts/goa-identity-service
 2315 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-power
 2319 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
 2322 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
 2323 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
 2324 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sharing
 2327 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
 2331 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-sound
 2332 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings
 2334 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-wacom
 2339 ?        Ss     0:00 /usr/bin/spice-vdagent
 2349 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
 2350 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-clipboard
 2351 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-datetime
 2352 tty2     Sl+    0:06 /usr/lib/gnome-settings-daemon/gsd-housekeeping
 2355 tty2     Sl+    1:27 /usr/lib/gnome-settings-daemon/gsd-color
 2359 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
 2362 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-mouse
 2363 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
 2386 tty2     Sl+    0:00 /usr/lib/gnome-settings-daemon/gsd-printer
 2451 tty2     Sl+    0:01 nautilus-desktop
 2453 tty2     Sl+    0:00 /usr/lib/gnome-disk-utility/gsd-disk-utility-notify
 2478 ?        Ssl    0:00 /usr/lib/evolution/evolution-calendar-factory
 2495 tty2     Sl     0:00 /usr/lib/ibus/ibus-engine-simple
 2508 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
 2548 ?        Sl     0:00 /usr/lib/dconf/dconf-service
 2559 ?        Sl     0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2478x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2478/2
 2576 ?        Ssl    0:00 /usr/lib/evolution/evolution-addressbook-factory
 2586 ?        Sl     0:00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory all --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2576x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2576/2
 2604 ?        Ssl    0:00 /usr/lib/gnome-terminal/gnome-terminal-server
 2614 pts/1    Ss+    0:00 bash
 2751 tty2     Sl+    0:07 update-notifier
 2753 tty2     SLl+   0:20 /usr/bin/gnome-software --gapplication-service
 2953 tty2     Sl+    0:00 /usr/lib/deja-dup/deja-dup-monitor
 6469 ?        S      0:05 sshd: user@pts/2
 6470 pts/2    Ss     0:00 -bash
 8040 pts/2    S+     0:00 screen
 8041 ?        Ss     0:01 SCREEN
 8042 pts/3    Ss     0:00 /bin/bash
 8652 pts/4    Ss+    0:00 /bin/bash
28401 pts/3    S+     0:00 /bin/sh /tmp/eveadm.test.sh
28402 pts/3    S+     0:00 tee /tmp/eveadm.test.20200128.log
29265 pts/3    Sl+    0:00 ./eveadm -v xen update ps x
29270 pts/3    R+     0:00 ps x
31015 tty2     SNl+   0:10 /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map

Stderr:

========================================
./eveadm -v xen update ls
Timeout: 0s
xen update called
Stdout:
cmd
eveadm
eveadm.rkt.test.sh
eveadm.test.sh
go.mod
go.sum
LICENSE
main.go
Makefile
README.md

Stderr:

========================================
./eveadm -v xen update ls qwerty
Timeout: 0s
xen update called
Command error: exit status 2
Stdout:

Stderr:
ls: cannot access 'qwerty': No such file or directory

========================================
time ./eveadm -v xen update sleep 100
Timeout: 0s
xen update called
Stdout:

Stderr:

0.00user 0.00system 1:40.00elapsed 0%CPU (0avgtext+0avgdata 8428maxresident)k
0inputs+0outputs (0major+482minor)pagefaults 0swaps
========================================
time ./eveadm -v xen update sleep 100 -t 1
Timeout: 1m0s
xen update called
Command error:  signal: killed
Command error: context deadline exceeded
Stdout:

Stderr:

0.00user 0.00system 1:00.00elapsed 0%CPU (0avgtext+0avgdata 8540maxresident)k
0inputs+0outputs (0major+478minor)pagefaults 0swaps
========================================