Skip to main content
Question

Run a command as logged in user.

  • May 22, 2012
  • 1 reply
  • 3 views

Forum|alt.badge.img+6

Hi

I have a command that I want to run as a one line command using Advanced tab in Policy creation.

The command is

cat ~/Library/Application Support/Merlin/Licenses/Merlin.merlinLicense

How would I modify this script so it doesn't run as root user and runs as the current logged in user?

Thanks

Dan

1 reply

donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • May 22, 2012