If it prompts and accepts options or data, the script owner must be logged on (to respond to the prompt). This is true even if the owner is the super user.
So the automation in this case can only act as a reminder and it is better to separate your script into 2 parts.
The first to check if you (or target user) is logged in, if you are logged in, then fire the second script (the one that prompts for options ...). If not logged in, send a reminder message using write, talk etc.
Needs testing but should work.
OK
Last edited by AnanthaP; 07-07-2016 at 02:55 AM.
|