Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup failure when running from environment without TERM. #75

Closed
wdoekes opened this issue May 29, 2014 · 1 comment
Closed

Startup failure when running from environment without TERM. #75

wdoekes opened this issue May 29, 2014 · 1 comment

Comments

@wdoekes
Copy link
Member

wdoekes commented May 29, 2014

If you run sipp in foreground mode, it will screen_init.

This fails with the following error if TERM is unset:

$ TERM= sipp some.host
Error opening terminal: unknown.

I think should retry screen_init with TERM=dummy if it fails. That way you can start a sipp command from a cron job / zabbix job / whatever without having to resort to -bg mode.

(That takes care of this addition https://code.osso.nl/projects/sipp/changeset/48b81a8bd29f/ )

@wdoekes wdoekes mentioned this issue May 7, 2015
wdoekes added a commit that referenced this issue May 14, 2015
Disables the use of ncurses if stdout is not a tty.

Observe that that mode disables interactive mode key presses. The
status screen is shown, but not if you abort prematurely with ^C.
Starting without a proper TERM env now works as long as stdout is not a
terminal (closes #75). Also closes #96 without the need for an extra
command line option.

Thanks @vodik!
@wdoekes
Copy link
Member Author

wdoekes commented May 14, 2015

(fed347b was superseded by c2381c8 -- fixed log message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant