DX Infrastructure Manager

Expand all | Collapse all

Passing arguments via nsa

  • 1.  Passing arguments via nsa

    Posted 12-03-2009 02:36 AM
    So maybe I am totally missing this, but I'm trying to pass an argument to my nsa script, however, I can't figure out how to do that.  In looking at the documentation, I find that the -a flag can be used to pass an argument to the script, however, I can't figure out exactly how to get at that argument in the script.  I've tried the default argv, but that wasn't populate.  So my question is how would I execute a script like such:  ./nsa -a argument test   and in my test script be able to see the argument that I passed using the -a flag?

    --shakeel


  • 2.  Passing arguments via nsa

    Posted 12-03-2009 03:31 AM
    Shakeel,

    The value you send in with the -a flag should be assigned to the SCRIPT_ARGUMENT variable.

    -Keith


  • 3.  Passing arguments via nsa

    Posted 12-03-2009 05:16 AM
    Ahh, that did the trick!  Thanks for the help Keith, I was going mad trying to figure it out!

    --shakeel