Skip to main content
added 6 characters in body
Source Link
devnull
  • 10.8k
  • 2
  • 43
  • 50

The line assigning mailbodymailbody is wrong. You're calling the contents of $body$body and/or $body1$body1 as a shell command line.

Replace

mailbody=$([ "$applicationstatus" == 200 ] && $body || $body1)

With

[ "$applicationstatus" = 200 ] && mailbody="$body" || mailbody="$body1"

The line assigning mailbody is wrong. You're calling the contents of $body and/or $body1 as a shell command line.

Replace

mailbody=$([ "$applicationstatus" == 200 ] && $body || $body1)

With

[ "$applicationstatus" = 200 ] && mailbody="$body" || mailbody="$body1"

The line assigning mailbody is wrong. You're calling the contents of $body and/or $body1 as a shell command line.

Replace

mailbody=$([ "$applicationstatus" == 200 ] && $body || $body1)

With

[ "$applicationstatus" = 200 ] && mailbody="$body" || mailbody="$body1"
deleted 1 characters in body
Source Link
Pavel Šimerda
  • 7k
  • 3
  • 29
  • 34

The line assigning mailbody is wrong. You're calling the contents of $body and/or $body1 as a shell command line.

Replace

mailbody=$([ "$applicationstatus" == 200 ] && $body || $body1)

With

[ "$applicationstatus" === 200 ] && mailbody="$body" || mailbody="$body1"

The line assigning mailbody is wrong. You're calling the contents of $body and/or $body1 as a shell command line.

Replace

mailbody=$([ "$applicationstatus" == 200 ] && $body || $body1)

With

[ "$applicationstatus" == 200 ] && mailbody="$body" || mailbody="$body1"

The line assigning mailbody is wrong. You're calling the contents of $body and/or $body1 as a shell command line.

Replace

mailbody=$([ "$applicationstatus" == 200 ] && $body || $body1)

With

[ "$applicationstatus" = 200 ] && mailbody="$body" || mailbody="$body1"
Source Link
Pavel Šimerda
  • 7k
  • 3
  • 29
  • 34

The line assigning mailbody is wrong. You're calling the contents of $body and/or $body1 as a shell command line.

Replace

mailbody=$([ "$applicationstatus" == 200 ] && $body || $body1)

With

[ "$applicationstatus" == 200 ] && mailbody="$body" || mailbody="$body1"