The following of a shell script. Which statement is true "./send_traps.sh IP" ?
  • The following is the beginning of a shell script. Which statement is true if the user issues "./send_traps.sh 10.1.1.1" at the CLI without the quotes?
    #!/bin/sh
    #Script Name is send_traps.sh
    trapDir=$1
    simulation_IP=$2
    waitPeriod=10
    trapgenScripts=/opt/MVVFM_Automation/trapgen_scripts/$trapDir
    referenceFiles=/opt/MVVFM_Automation/reference_files/traps_validation/$trapDir
    alarmValidateDir=/opt/MVVFM_Automation/java/reference_files_creation/traps_validation

    A. The script will fail because only one variable is specified by the user at the CLI.
    B. The trapgenScripts variable will be set to /opt/MVVFM_Automation/trapgen_scripts/10.1.1.1.
    C. The trapgenScripts variable will not be set.
    D. The simulation_IP variable will be set to 10.1.1.1. 8)