I want the cronjob to do some things as the superuser, and depending on the result, launch an app as me, the logged-in user.
I've tried a bunch of things but nothing I think should work does.
Similar questions:
cronlaunchdsudo
I want the cronjob to do some things as the superuser, and depending on the result, launch an app as me, the logged-in user.
I've tried a bunch of things but nothing I think should work does.
Similar questions:
Best Answer
I figured out the key was to use
su
with-l
,-c
and single quotes:In context: