
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
1) Write a bash script to demonstrate while loop which displays "While Loop Demo" and exits when key q is typed.
2) Write a bash script using while loop which displays date, your username and current directory every 15 seconds
scripts MUST be in bash shell linux commands
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
can you show me the outut of those scripts?
Solution
by Bartleby Expert
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
can you show me the outut of those scripts?
Solution
by Bartleby Expert
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- You will develop a client side and a Servlet program that will work with a database. 1. The client (front end) should have a title "NJIT Credit Union", centered. 2. The client should have a background color. 3. The client should have a text field with label 'UserID' where user will enter userID (integer) and a Submit button with text "Submit". 4. An unsuccessful authentication should have a message printed on the screen, in red, stating that "Your authentication has failed, please try again.” (no pop up message). At this point the text field should get cleared and ready to accept a new input. Your program should not exit. 5. A successful authentication should be followed by a message on the screen, in green, stating that "Your authentication is successful" (no pop up message). 6. There should be two other text boxes with label "Deposit" and "Withdraw" where user will enter an amount (you should accommodate for decimals). These two text boxes should only be enabled after successful…arrow_forwardFiles are organized according to tracks, sectors, and. Cylinders. The concentric rings on the platter are called ____. a) sectors b) cylinders c) horseshoes d) tracksarrow_forwardWhich of the following pieces of code correctly opens and closes a file? with open('my_file.txt', 'r') as f: for line in f: print(line) ### #3#3############ ####### open('my_file.txt', 'r') for line in f: print(line) f = ###################################### Of = close('my_file.txt', 'r', close_after=True) for line in f: print(line) ######################### 23####1 f = open(' my_file.txt', for line in f: print(line) close(f) 'r') ###################### ####### None of these optionsarrow_forward
- Power ShellProject 1: Power ScriptingINTRODUCTIONYou are a network administrator who is responsible for 100 users and 20 servers for a medium size business. As an administrator who has multiple tasks to get done throughout the day, you need to develop a Power Shell script to help you manage routine tasks that you have to take care of everyday. To simplify your administration create a script with the following objectivesOBJECTIVES Script that will create multiple folders using a do loop and variableCREATE MULTIPLE FOLDER SCRIPT GUIDELINESSETTING UP THE VARIABLES: Open PowerShell ISE Create a variable $intfolders that has a value of 10 Create a variable $intPad that has a value of 0 Create a variable $i that has a value of 1 Create a variable for the new folder o New-Variable –Name strPrefix –Value “testfolder” –Option constantCREATING THE LOOP STATEMENT Do { Set If condition o if ($i -lt 10) Set Command when Condition is Trueo {New-Item –path C: -name $sarrow_forwardYou can configure your shell by editing the file~/.bashrc for instance to change the value of$ PS1 and $PAth permenatrly true or falsearrow_forwardHello how would I get save.py reading and saving my text document. I have code for save.py but it doesn't work. Can someone please help fix it so that it will correctly save onto another text document. import save def main(): filename = '' print('-'*45) choice = '' while choice.upper() !='Q': print() if filename != '': print('Current file opened:', filename) print('0) Choose a file to open\t5) Save Song Playlist') print('Q) Quit') choice=input('Enter a choice: ') if choice == '0': print() filename = input('Enter file name: ') rfile =open(filename,'r') line_list =rfile.read() for word in line_list: words_list=word.split(' ') print(line_list) print(f"File {filename} opened.") elif choice == '5': print() save.save_playlist(filename) elif choice.upper() == 'Q': print("Program complete.")…arrow_forward
- please comment all code Using a Bash environment, write a script to do the following: - declare and initialize an array to a few numbers.- in a loop, validate the numbers so they are greater than 0, if so:- get the total of them then the average.- print the average value.arrow_forwardWhat controls are available to prevent the file from being destroyed or contaminated, or to restore a damaged file?arrow_forwardhow to fix thisarrow_forward
- Suppose you want to compile your code into an executable name lab, and you have constructed a valid CMakeLists.txt file, which is the correct command to generate a valid Makefile? cmake3 . make ./lab None of the abovearrow_forwardNote that lastlog file in /var/log is not a text file, to view the file use lastlog command linux redhat command only plsarrow_forwardPlease answer the following Bash question, please show your output as well. 1. Write a Bash function named ‘Generate-ID' that generates all possible UGA student id start with 900. The output should be saved into a file named studentID.csv. 2. Write a Bash function named ‘Find_word’ that read wordlist.txt file to find all words end with “ing” and output these words to WordEndIng.csv. 3. The auth.log file (path: /var/log/auth.log) and syslog file (path: /var/log/syslog) are two of the most important log files in Linux. Generally, adversaries target these files so that system administrators couldn’t track what attackers are doing. Write a function named get-linuxlog() that reads all the above two files and stores them into a file named linuxeventlog.txt (Hint use the ‘cat’ command)arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education