How do I run a script with option?

amotzney
New Contributor

Looking to run a script with the -i option/argument (install.sh -i). Where do I input the -i? Script won't run without it being there.

1 ACCEPTED SOLUTION

dpertschi
Valued Contributor

McAfee Agent I presume? Yeah, what a PIA....

I create a package to copy the install.sh file at my desired location on the machine. Create a policy to 'install' that package, and then use the Run Command field in the Advanced section with the verbiage to actually install with the -i or -u option.

View solution in original post

4 REPLIES 4

mm2270
Legendary Contributor III

Can you clarify what you're looking to do? Are you trying to run a script that is meant to be interactive, looking for input as it runs from the Casper Suite?

dpertschi
Valued Contributor

McAfee Agent I presume? Yeah, what a PIA....

I create a package to copy the install.sh file at my desired location on the machine. Create a policy to 'install' that package, and then use the Run Command field in the Advanced section with the verbiage to actually install with the -i or -u option.

amotzney
New Contributor

@mm2270 Sorry for not being clear on which script is being run dpertschi knew what I was referring to. Pain to try and run a script with arguments through Casper.

mm2270
Legendary Contributor III

No worries. Glad you got a quick answer!