in reply to problem with interpolation in an email delivered by mailx

Maybe $current_load_avg has a newline character which mailx doesn't like: chomp
chomp $current_load_avg;

Replies are listed 'Best First'.
Re^2: problem with interpolation in an email delivered by mailx
by tommysmuffins (Initiate) on Jun 02, 2015 at 17:24 UTC
    I bet you're right. Will test. Would a newline character terminate an email?
      This is pretty definitely what it is. I just tried printing $current_load_avg, and it printed on a line by itself.