Skip to main content
Answer

How do I run a script with option?

  • February 15, 2013
  • 4 replies
  • 16 views

Forum|alt.badge.img+3

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.

Best answer by dpertschi

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.

4 replies

mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • February 15, 2013

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
Forum|alt.badge.img+19
  • Contributor
  • Answer
  • February 15, 2013

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.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • February 15, 2013

@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
Forum|alt.badge.img+24
  • Legendary Contributor
  • February 15, 2013

No worries. Glad you got a quick answer!