Skip to main content

Since the JSS 9.98 upgrade, all script results are displayed on a single line in the JSS policy logs. Where line breaks should be, the HTML tag for line break is seen. To view results proper, I have to paste them into Text Wrangler, then save and open as HTML.

Below is an example. A simple test with

ls /Folder

Same issue here. See example of an output...

Script result: Wed Mar 29 13:12:31 PDT 2017: Current Flash version: 24.0.0.221<br/>Wed Mar 29 13:12:31 PDT 2017: Available Flash version: 25.0.0.127<br/>Wed Mar 29 13:12:31 PDT 2017: Downloading newer version.<br/>usage: dirname path<br/>Wed Mar 29 13:12:33 PDT 2017: Mounting installer disk image.<br/>usage: dirname path<br/>Wed Mar 29 13:12:38 PDT 2017: Installing...<br/>Wed Mar 29 13:12:55 PDT 2017: Unmounting installer disk image.<br/>Wed Mar 29 13:13:05 PDT 2017: Deleting disk image.<br/>usage: dirname path<br/>Wed Mar 29 13:13:05 PDT 2017: SUCCESS: Flash has been updated to version 25.0.0.127<br/>


[PI-003837] Policies with scripts or Files & Processes: Execute Command does not respect line breaks


Well, guess we need Jamf Pro 10!

My workaround for now is a service I created in automator to render the results as html..


¯_(ツ)_/¯


I'm a bit late to the game here since we just upgraded to 9.100, and this issue is very annoying. I can't find any info on it being fixed, where can I get the status on this?


@alexjdale Stlil not fixed as of 9.100... Use to work in 9.97.

It's a bit of work, but I go into the machine record >> History >> policies >> Show. Line breaks will work here...


Thanks, I wanted to make sure I wasn't missing something. We skipped 9.98 and 9.99 so this was new to me.


In version 10.1, this is still an issue.


Having the same problem on 10.1.1


A green initiative had me cursing this issue last week when I had to create a script that would look for installed printers that offered Duplex, but where Duplex was off by default. I was somewhat pleased with the script. It output what I expected:

<PrinterName> <None>
<PrinterName> <DuplexNoTumble>
<Printername> <DuplexTumble>

My upside up smiley turned into an upside down smiley once I uploaded it to Jamf Pro 9.101.4 and found the EA that read the output of my script spit out...you guessed it...a single line, which was a PITA to work with.

<PrinterName> <None> <PrinterName> <DuplexNoTumble> <Printername> <DuplexTumble>

I really hope to see this issue resolved one day. I mean, heck, we can get a Tesla into space. Why can't we get line breaks in an EA output?


FWIW, from another thread...

https://www.jamf.com/jamf-nation/discussions/27060/script-help-well-maybe-not-but-figured-i-d-check#responseChild160553


This appears to have returned again at the last update, anyone have a fix ?


It's still an issue as of 10.15.1.
Here's the FR for it: https://www.jamf.com/jamf-nation/feature-requests/6993/correctly-display-line-breaks-in-policy-logs


@luke.reagor We are seeing this PI resolved under Jamf Pro 10.15.1. Output from script execution via policy includes line breaks, as expected.