JTSmith Posted September 25, 2013 Posted September 25, 2013 I want to perform a script, within a script... I want the first script to run and I have an If step in there that ends with Exit Script. When it exits the script, it goes to the next step in the parent script. Is there a way to have a complete exit script? Here is what I am trying to accomplish... I want some scripts to require a password to run. If there is a way to "Require Account Password" type step, I'd love the option. I don't believe there is, so I have a script that runs a check. Rather than cut and paste the steps on each script, i'd like to just "Perform Script: Password" on each one. Any advice would be appreciated. Thanks!
Fitch Posted September 25, 2013 Posted September 25, 2013 You could use the Re-Login script step to ask for a password. But if the user is already logged in, why bother? Is this a shared computer, where different people walk up and enter data? If not, then I would think it makes more sense to simply test for the account as you say, e.g., with Get ( AccountPrivilegeSetName ). If you're doing that in a separate script, there are various approaches. For example, you could pass the required privilege set name in as a script parameter. The Password script could then compare that to the actual privilege set, and Exit Script with a result of "pass" or "fail". You'd then use Get(ScriptResult) in the parent script to Exit or proceed. Generally I avoid Halt, it feels messy to me. However, a password sub-script like your is one place where I might use it. So, rather than Exit with a "fail" result, you could simply Halt, and it would never return to the parent script. I've worked with a solution like that, and I put HALT in the name of the subscript to remind me that that might be the result if I called it.
Recommended Posts
This topic is 4076 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now