Community
Participate
Working Groups
The output of the actual command that runs the start/stop/restart is producing some odd output. It would be great if it could produce useful output to report the status of the action, since I'm piping that output to the web interface. Here's an example of the "Start" action: No value for $TERM and no -T specified Starting Hudson Build Services /home/services/global/hudson/hudson-init: line 98: printf: [OK]: invalid number
Without looking closer at the code. I think the simple solution is to add a check like so: if ($TERM) { // Do stuff } The tput line is to calculate the terminal width in order to put the "[OK]" text on the right side of the screen. If there is no terminal then this calculation fails.
Should be fixed now. Denis, can you give it a try?
Works great, the output text is now useful. Thanks.