outset icon indicating copy to clipboard operation
outset copied to clipboard

Scripts not running although logs show they ran successfully

Open conner-lotus opened this issue 2 years ago • 3 comments

I am new to Outset. The test scripts I have setup are not executing the results. Not sure what I am missing.

  • fresh Monterrey Mac

  • installed Python3 (using link on Outset page)

  • installed Outset-3.0.3 .pkg

  • created simple test scripts (lo.sh) for each scenario (such as login-once). Sleep 10 touch /Users/Shared/lo.txt

  • Permissions and ownership for the script show this: -rwxr-xr-x 1 root wheel 36 Dec 29 14:53 /usr/local/outset/login-once/lo.sh

  • outset logs show this: 2021-12-29 03:10:52 PM - INFO: Processing /usr/local/outset/login-once/lo.sh

For this instance, there was only one line in the log.

Does this indicate success? the lo.txt file was not created automatically. However when I run this script through terminal the lo.txt file is successfully created.

What am I missing?

Thanks in advance.

conner-lotus avatar Dec 29 '21 21:12 conner-lotus

I am seeing similar issues on 12.1.

kkordisch avatar Dec 30 '21 14:12 kkordisch

Hey there, "Installed python3" is unfortunately not enough info in 2021, as there are several versions depending on the source. Do you see an entry for your script when you run this command:

defaults read ~/Library/Preferences/com.github.outset.once.plist

? I can tell you it does work in my environment using munki-python and scripts using either that python in the shebang or /bin/bash.

arubdesu avatar Dec 30 '21 14:12 arubdesu

I installed Python 3.10.1 from the Python website, https://www.python.org/downloads/ .

@arubdesu This is the output I got running the command you suggested: 2021-12-30 10:19:16.203 defaults[798:25814] Domain /Users//Library/Preferences/com.github.outset.once.plist does not exist

However, I updated the shebang in each script and added an exit statement, and it seems to have resolved the issue.

Thanks for the assistance!

conner-lotus avatar Dec 30 '21 18:12 conner-lotus