Suppose that your login shell is a TC shell. You received a shell script that runs under Bourne Again shell. How would you executed it? Clearly write down all the steps that you would use.
What will be an ideal response?
Let’s assume that the Bourne Again shell (Bash) script is in a file called my_script. In order to execute the script in this file, I will take the following four steps.
1.Make the script executable by executing the chmod u+x my_script command. (See Chapter 5 for file permissions.)
2.Start a Bash process on top of my login TC shell by running the bash (or /bin/bash) command.
3.Execute the shell script by running the my_script as a command.
4.Terminate the Bourne shell process and get back to my login TC shell.
The following shell session show the four steps.
% chmod u+x my_script
% /bin/bash
$ my_script
[ Output of the script ]
$
%
Another way to execute the shell script is to make it executable, put #!/bin/bash on the first line of the my_script file, make it executable by
using the chmod u+x my_script command, and execute the script.
You might also like to view...
____ are containers for various commands and tools.
a. Toolboxes b. Panels c. Work units d. Keyframes
Which skill allows a technician to participate in a conversation and focus on what the customer is saying?
A) Attention to detail B) Active listening C) Ethics D) Teamwork
Critical Thinking QuestionsCase 8-1You are the assistant to the director of an organization that publishes an informational Web site for elementary school teachers. The director tells you that the organization is now ready to expand its Web site offerings to include an informational site for middle school teachers. He asks you to work with a Web designer to come up with the best approach to creating the new Web site.You also mention that you want to use many of the same elements found on pages in the existing Web site. The Web designer tells you that ____.
a. it is a violation of W3C usability and accessibility guidelines to repurpose Web site elements and style sheetsc. she will have an assistant duplicate the desired elements and style sheets for the new site's pagesb. she can export the desired files and folders, including style sheets, from the existing site and import them into the new sited. repurposing elements and style sheets from the existing site is not the best way to hold down development costs What will be an ideal response?
What is the process for validating data entered into fields?
What will be an ideal response?