itgle.com

单选题What can be done to enable the debug information for functions to be displayed when using‘ksh -x’to debug a script?()A Run the script using ‘ksh -fx’.B Run the script using ‘ksh -a function -x’.C Edit the script and add ‘set -x’ at the beginning.D Edit

题目
单选题
What can be done to enable the debug information for functions to be displayed when using‘ksh -x’to debug a script?()
A

Run the script using ‘ksh -fx’.

B

Run the script using ‘ksh -a function -x’.

C

Edit the script and add ‘set -x’ at the beginning.

D

Edit the script and add ‘set -x’ at the beginning of each function.


相似考题
更多“单选题What can be done to enable the debug information for functions to be displayed when using‘ksh -x’to debug a script?()A Run the script using ‘ksh -fx’.B Run the script using ‘ksh -a function -x’.C Edit the script and add ‘set -x’ at the beginning.D Edit”相关问题
  • 第1题:

    If an existing script is uploaded to the CRS, what does it ask?()

    • A、Do you want to debug the script?  
    • B、Do you want to refresh the script?  
    • C、Do you want to save the application?  
    • D、Do you want to return to Script Management? 

    正确答案:B

  • 第2题:

    The operator needs to execute a long-running shell script. How can the script be executed so the operator does not have to wait until it is complete to access the command prompt?()

    • A、./script.ksh
    • B、nohup ./script.ksh
    • C、run -b ./script.ksh
    • D、./script.ksh > nohup.out

    正确答案:A

  • 第3题:

    What can be done to enable the debug information for functions to be displayed when using‘ksh -x’to debug a script?()

    • A、Run the script using ‘ksh -fx’.
    • B、Run the script using ‘ksh -a function -x’.
    • C、Edit the script and add ‘set -x’ at the beginning.
    • D、Edit the script and add ‘set -x’ at the beginning of each function.

    正确答案:D

  • 第4题:

    A user has written a script that is not running correctly and asks an administrator for help. Without adding anything to the script, how can the administrator determine the cause of the problem?()

    • A、Run the script with an 'sh -x' in front.
    • B、Run the script with a 'ksh -v' in front.
    • C、Type debug into the command line before running the script.
    • D、Type 'set -x' into the command line before running the script.

    正确答案:A

  • 第5题:

    You issue this RMAN command:   RMAN> create script Level0Backup {   backup   incremental level 0   format ‘/u01/db01/backup/%d_%_Sp’   fileperset 5   (database include current controlfile);   sql ‘alter database archive log current’;   }  Which three statements are true about the Level0Backup script you just created?()

    • A、The script is stored only in the control file.
    • B、The script is stored only in the recover catalog.
    • C、The script can be executed only by using the RMAN RUN command.
    • D、The commands of the script can be displayed with the LIST command.
    • E、The commands of the script can be displayed with the PRINT command.
    • F、The commands of the script can be displayed with the REPORT command.

    正确答案:B,C,E

  • 第6题:

    You deploy two Windows Server 2008 R2 Hyper-V servers. You manage the servers by using Microsoft System Center Virtual Machine Manager (VMM) 2008 R2. You need to ensure that you can restore virtual machines (VMs) in the event of a hardware failure.   What should you do?()

    • A、Use a PowerShell script to create a snapshot of each VM. Run the script every 60 minutes on each Hyper-V server
    • B、Use a PowerShell script to create a checkpoint of each VM. Run the script every 60 minutes on each Hyper-V server
    • C、Use a PowerShell script to pause, export, and start each VM, and then to copy the export to the opposite Hyper-V server. Run the script once per day on each Hyper-V server
    • D、Use a PowerShell script to shut down, export, and start each VM, and then to copy the export to the opposite Hyper-V server. Run the script once per day on each Hyper-V server

    正确答案:D

  • 第7题:

    单选题
    A storage specialist needs to automate some tasks triggered in the event of disaster recovery.  What is the best solution to accomplish this()
    A

    using the DS GUI, step through Real Time Manager, Copy Services, Create custom scripts; actions and event conditions can be defined that triggerthe script; there is no need for a password

    B

    create a shell script usingdscli commands; trigger the script from the operating system, and call the script using the -pwd option with the password

    C

    create a password file; create a shell script using dscli commands; trigger the script from the operating system

    D

    create a password file; create a shell script usingdscli commands; trigger the script from the operating system; call the dscli script with the dscli -script  -pwdfile command


    正确答案: A
    解析: 暂无解析

  • 第8题:

    单选题
    Given the following scripts, what output would be generated() usr/local/bin/scriptl    #!/usr/bin/ksh    VARl=red    export VARl=green    VARl=blue    /usr/local/bin/script2    ARl=yellow   /usr/local/bin/script2     #!/bin/ksh   echo "The sky is ${VAR1}."
    A

    The sky is red.

    B

    The sky is blue.

    C

    The sky is green.

    D

    The sky is yellow.


    正确答案: B
    解析: 暂无解析

  • 第9题:

    单选题
    What can be done to enable the debug information for functions to be displayed when using ‘ksh - x’to debug a script?()
    A

    Run the script using 'ksh -fx'.

    B

    Run the script using 'ksh -a function -x'.

    C

    Edit the script and add 'set -x' at the beginning.

    D

    Edit the script and add 'set -x' at the beginning of each function.


    正确答案: B
    解析: 暂无解析

  • 第10题:

    多选题
    You issue this RMAN command:   RMAN> create script Level0Backup {   backup   incremental level 0   format ‘/u01/db01/backup/%d_%_Sp’   fileperset 5   (database include current controlfile);   sql ‘alter database archive log current’;   }  Which three statements are true about the Level0Backup script you just created?()
    A

    The script is stored only in the control file.

    B

    The script is stored only in the recover catalog.

    C

    The script can be executed only by using the RMAN RUN command.

    D

    The commands of the script can be displayed with the LIST command.

    E

    The commands of the script can be displayed with the PRINT command.

    F

    The commands of the script can be displayed with the REPORT command.


    正确答案: B,A
    解析: 暂无解析

  • 第11题:

    单选题
    A user has written a script that is not running correctly and asks an administrator for help.  Without adding anything to the script, how can the administrator determine the cause of the problem?()
    A

    Run the script with an ’sh -x’ in front.

    B

    Run the script with a ’ksh -v’ in front.

    C

    Type debug into the command line before running the script.

    D

    Type ’set -x’ into the command line before running the script.


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    An operator needs to run a script which will write standard output and standard error to different files. Which of the following commands will successfully perform this task?()
    A

    myscript.ksh 1>/tmp/log/script.log 2>/tmp/log/script.err

    B

    myscript.ksh $1>/tmp/log/script.log $2>/tmp/log/script.err

    C

    myscript.ksh 1>/tmp/log/script.log 2>1 /tmp/log/script/err

    D

    myscript.ksh 2>1 /tmp/log/script.log 2> /tmp/log/script.err


    正确答案: A
    解析: 暂无解析

  • 第13题:

    ASDM on the ASA platform is executed as:()

    • A、 An active-x applicationor a java script application
    • B、 A java script application and a PHP application.
    • C、 A fully compiled .NET framework application
    • D、 A fully operational Visual Basic application
    • E、 A java applet running in the context of your browser or a stand alone application using the java run-timeenvironment

    正确答案:E

  • 第14题:

    An operator needs to run a script which will write standard output and standard error to different files. Which of the following commands will successfully perform this task?()

    • A、myscript.ksh 1>/tmp/log/script.log 2>/tmp/log/script.err
    • B、myscript.ksh $1>/tmp/log/script.log $2>/tmp/log/script.err
    • C、myscript.ksh 1>/tmp/log/script.log 2>1 /tmp/log/script/err
    • D、myscript.ksh 2>1 /tmp/log/script.log 2> /tmp/log/script.err

    正确答案:A

  • 第15题:

    Given the following scripts, what output would be generated() usr/local/bin/scriptl    #!/usr/bin/ksh    VARl=red    export VARl=green    VARl=blue    /usr/local/bin/script2    ARl=yellow   /usr/local/bin/script2     #!/bin/ksh   echo "The sky is ${VAR1}."

    • A、The sky is red.
    • B、The sky is blue.
    • C、The sky is green.
    • D、The sky is yellow.

    正确答案:C

  • 第16题:

    Which statement about using RMAN stored scripts is true?()  

    • A、 To create and execute an RMAN stored script,you must use a recovery catalog.
    • B、 When executing a stored script and a command fails,the remainder of the script is executed,and a message is written to the alert log file.
    • C、 RMAN stored scripts can always be executed against any target database that is registered in the recovery catalog.
    • D、 When you execute a stored script,it always executes using the persistent channel settings previously set with the CONFIGURE command.

    正确答案:A

  • 第17题:

    Given the script   create script db_backup_datafile_script  {backup datafile and 1, and2 plus archivelog delete input;} Run {execute script db_backup_datafile_script using 2;}   What is the result of running this command?()  

    • A、 The script will fail since you instructed RMAN to back up only one datafile rather than two
    • B、 The script will successfully back up datafile 3 without error
    • C、 The script will fail since it uses a substitution variable which is not supported
    • D、 The execute script command will prompt for the value of and2 since it’s not included in the command
    • E、 The script will fail because you cannot use the plus archivelog command when backing up

    正确答案:D

  • 第18题:

    单选题
    Which statement about using RMAN stored scripts is true?()
    A

     To create and execute an RMAN stored script,you must use a recovery catalog.

    B

     When executing a stored script and a command fails,the remainder of the script is executed,and a message is written to the alert log file.

    C

     RMAN stored scripts can always be executed against any target database that is registered in the recovery catalog.

    D

     When you execute a stored script,it always executes using the persistent channel settings previously set with the CONFIGURE command.


    正确答案: A
    解析: 暂无解析

  • 第19题:

    单选题
    If an existing script is uploaded to the CRS, what does it ask?()
    A

    Do you want to debug the script?  

    B

    Do you want to refresh the script?  

    C

    Do you want to save the application?  

    D

    Do you want to return to Script Management? 


    正确答案: A
    解析: 暂无解析

  • 第20题:

    单选题
    You have created a script in the recovery catalog called backup_database. Which of the following commands would successfully execute that script?()
    A

     run { open script backup_database; run script backup_database }

    B

     run { engage script backup_database; }

    C

     run { run script backup_database; }

    D

     Run { execute script backup_database; }

    E

     The name backup_database is an invalid name for an RMAN script. Trying to run it from RMAN would result in an error.


    正确答案: C
    解析: 暂无解析

  • 第21题:

    单选题
    The operator needs to execute a long-running shell script. How can the script be executed so the operator does not have to wait until it is complete to access the command prompt?()
    A

    ./script.ksh

    B

    nohup ./script.ksh

    C

    run -b ./script.ksh

    D

    ./script.ksh > nohup.out


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    You deploy two Windows Server 2008 R2 Hyper-V servers. You manage the servers by using Microsoft System Center Virtual Machine Manager (VMM) 2008 R2. You need to ensure that you can restore virtual machines (VMs) in the event of a hardware failure.   What should you do?()
    A

    Use a PowerShell script to create a snapshot of each VM. Run the script every 60 minutes on each Hyper-V server

    B

    Use a PowerShell script to create a checkpoint of each VM. Run the script every 60 minutes on each Hyper-V server

    C

    Use a PowerShell script to pause, export, and start each VM, and then to copy the export to the opposite Hyper-V server. Run the script once per day on each Hyper-V server

    D

    Use a PowerShell script to shut down, export, and start each VM, and then to copy the export to the opposite Hyper-V server. Run the script once per day on each Hyper-V server


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    Given the script   create script db_backup_datafile_script  {backup datafile and 1, and2 plus archivelog delete input;} Run {execute script db_backup_datafile_script using 2;}   What is the result of running this command?()
    A

     The script will fail since you instructed RMAN to back up only one datafile rather than two

    B

     The script will successfully back up datafile 3 without error

    C

     The script will fail since it uses a substitution variable which is not supported

    D

     The execute script command will prompt for the value of and2 since it’s not included in the command

    E

     The script will fail because you cannot use the plus archivelog command when backing up


    正确答案: A
    解析: 暂无解析

  • 第24题:

    单选题
    ASDM on the ASA platform is executed as:()
    A

     An active-x applicationor a java script application

    B

     A java script application and a PHP application.

    C

     A fully compiled .NET framework application

    D

     A fully operational Visual Basic application

    E

     A java applet running in the context of your browser or a stand alone application using the java run-timeenvironment


    正确答案: C
    解析: 暂无解析