Free Essay

Pos/420

In: Computers and Technology

Submitted By scotta
Words 675
Pages 3
University of Phoenix Material

Systems Administration Scripting Log

From: Your name
Date: mm/dd/yyyy

As you complete each step listed below, keep track of what occurs at each point: what you type and the output given, as well as if you experience any errors.

1. Create a new file called week4.scr

2. Change the permissions on this new file to add the execute bit for user, group, and owner (sudo chmod 755 week4.scr).

3. Edit the file using Gedit

4. Enter the following lines of shell script into the file (just copy and paste):

#!/bin/bash

trap “echo You cannot press THAT key” SIGINT SIGTERM

count=1

echo "Start of week4 script"

while [ $count -le 10 ]

do

echo "Loop #$count"

sleep 5

count=`expr $count + 1`

done

echo "end of the program”

5. Save the file

6. Run the script to make sure you have no syntax errors:

• ./week4.scr

• NOTE: If you have syntax errors, you mistyped something. The script must run with NO syntax errors before you can move on. If you need help, ask.

7. Run the script and verify that you are trapping the SIGINT (signal 2) and SIGTERM (signal 15) signals properly:

• ./week4.scr

• Open a NEW, second Terminal window.

o ps –ef | grep week4.scr

▪ This will obtain the PID of your script

o kill -2 PID

▪ Verify that your trap message is displayed in the FIRST Terminal window

o kill -15 PID

▪ Verify that your trap message is displayed in the FIRST Terminal window

8. Take a screen capture of this sequence (FIRST Terminal window only) and paste it here:

9. Run the script again using the `crontab -e` command to schedule the job in the future. Make it easy on yourself, and schedule the job to run 5 minutes from now.

• crontab –e

o Schedule the week4.scr script to run in approximately five minutes from now. Provide the full path to the script (e.g. /home/path/to/script/week4.scr)

o If we assume that the current time is 11:15 AM, and that you wish to run your script at 11:20 AM, your cron setting would be:

20 11 * * * /home/path/to/script/week4.scr

• After scheduling the job with `crontab -e`, check to see that the job has been scheduled by using the `crontab -l` command from the shell prompt.

• The crontab command will spawn a new shell to run the designated script. This means that the output of the script will NOT be displayed in your current shell, the way it was displayed when you ran the script from the shell prompt.

• The easiest way to verify that your script has run is to redirect standard output (stdout) from the script to a text file. To do this, add the following as the second line of your script:

o exec 1>/home/path/to/script/week4.output.txt

o [Obviously, substitute YOUR path in the command, above]

• After the scheduled execution time has passed, verify the proper execution of the week4.scr script using cron:

o cat week4.output.txt

o Your output should look something like this:

wsaiko@ubuntu:~/POS420/week4$ cat week4.output.txt

Start of week4 script

Loop #1

Loop #2

Loop #3

Loop #4

Loop #5

Loop #6

Loop #7

Loop #8

Loop #9

Loop #10

End of the week4 script

The week4 script has ended Wed Jan 4 13:29:39 PST 2012

• Check the time and date contained in the week4.output.txt file, and verify that the file was written at the scheduled time.

• Capture a screenshot consisting of the `crontab -l` command and its output showing the scheduled job and the `cat` of week4.output.txt following the completion of the script. See the example screenshot on the next page of this document, regarding the required submission format for Screenshot #2.

Sample Output for #9.).

Delete this page when you submit.

-----------------------
These should match, or be 1-5 minutes off, at most, depending on how long your script ran.

Similar Documents

Premium Essay

Pos/420 Week4

...The operating system that I use for work runs on Windows 7 Enterprise and for work purposes it works well. I am in the Army so money is typically no issue when acquiring tech support from the Microsoft end as well as through here at work. If I did work for a smaller company, I might be more open to utilizing Linux into the work place. I am no expert, but I have been experimenting with the Ubunto system. One of the main differences that is clear is that Window’s 7 is a product of Microsoft which uses NT as its kernel. In order to use Windows you must pay for the product and the support, but it must be noted that most updates are free but newer versions are not. Also a great plus for Ubunto is free open source software and does not have a designated technical support center. Ubunto’s kernel is Linux which differs from Windows. This is not too much of a problem for an experienced user but for a newcomer, this is a definite negative aspect. Another difference between the two systems is that security comes already installed with Ubunto; Windows on the other hand, does not come with security installed. In order to make sure your files and network is protected you must purchase security from Microsoft or other compatible vendors. While both systems are deemed as user friendly, I seem to have a harder time with Ubunto, but I think that may be due to the many years of experience of using Windows that has led to that situation. Another key difference is that there is lots of software...

Words: 515 - Pages: 3

Premium Essay

Hi Buddy

...ROOP RUBBER MILLS LTD.(IDC) PLOT NO.20&25, IDC ,MEHRAULI ROAD GURGAON -122001 Phone No.: 0124-4084096 Fax No.: 0124-2327403 Email:- sales@rooppolymers.com Purchase Order (Raw Material & Components) ECC_NO.: AACR7268JXM002 Division.: II Range: IX Vat Tin No: 06651909285 PAN: AACR7268J Vendor Name : 3M INDIA LIMITED (V3-0001) Address : 48-51,ELECTRONICS CITY HOSUR ROAD PO No Amd.No W.E.F. : : : RM213-14/92 0 30/04/13 PO Date Amd. Date : : 30/04/13 31/05/2013 Email : Phone : Yours Ref : mr Fax : Dear Sir, We are glad to issue our Purchase Order for the following item/s. Sl. No. 1 Quot Ref. ITEM Code RRMVITOX0005 Description VITON RUBBER 2181 : Valid Upto Our Contract Person : KARAN SINGH Phone : Email : Process UOM Qty Weight 50.00 As Finished. KG Rate Desc. (Rs)/ Unit (%) Matl / Pros 1471.50 Amount Rs 73,575.00 Amount Rs Seventy-Three Thousand Five Hundred Seventy-Five Only Freight Packing/Forwarding Insurance Delivery Type Excise Remarks Payment Term Paid At Party own expense Nil Urgent Basic Excise Cess Hcess Vat/Cst Surcharge 73575.00 @% 2.00 @% 1.00 @% 0.00 @% 0.00 @% V 0.00 0.00 Dispatch Instruction By Road D.D. CHEQUE As Applicable ADVANCE Grand Total : 73575.00 Remarks For ROOP RUBBER MILLS LTD.(IDC) Checked By ( SURESH SINGH ) ISO Documnet No. -: FMT/PUR/03 Verified By ( SURESH SINGH ) Authorised Signatory ( SURESH SINGH ) Instructions: Any Discrepancy in Order should...

Words: 294 - Pages: 2

Free Essay

Week 1 Homework

...17. Give an example of a recent purchase you made where the purchase of an ongoing relationship with the seller. Discuss what the seller has (or could do better) to strengthen the relationship and increase the odds of you being a loyal customer in the future. I’m a loyal customer of Jimmy Johns restaurant they make gourmet sub sandwiches. I eat a sub almost every week. The restaurant is in a prim location that sits right of the main street that I take to get home from work. Jimmy John’s subs are large and cheap and are made very fast. The restaurant also has a drive through which makes the ordering and purchase of the subs even that much faster. If I’m home and feeling a little lazy I can even order a sub and have it delivered to my house. Jimmy John’s has covered all bases, that’s why I will continue to be a loyal customer. 18. In your own words explain several reasons why a marketing manager should consider international markets when evaluating possible opportunities. International trade is growing around the world and the obstacles of trade are going away. Also with progress in e-commerce, transportation, and communication it has become more affordable and less difficult to reach international customers. Internet exercise page 10 About 20 different manufacturers products are shown on the home page of target.com. I don’t think consumers would be better off if each manufacture sold directly from its own website. Its easier to go to websites like target...

Words: 375 - Pages: 2

Premium Essay

Pos 420 Week 5 Linux vs Windows Contrast and Comparison

...This archive file of POS 420 Week 5 Discussion Questions shows the solutions to the following problems: DQ 1: Compare and contrast the X Window system and Microsoft Windows. DQ 2: What is the most interesting, useful, unexpected or unusual thing you have learned about Linux/UNIX during this course? Computer Science - General Computer Science POS 420 Week 1 UNIX® and Linux® Comparison Matrix Resources: University of Phoenix Material: UNIX® and Linux® Comparison Matrix Complete the UNIX® and Linux® Comparison Matrix located on your student website. See the Assignment 1 post in the Main forum or Course Materials forum for detailed instructions. POS 420 Week 2 Individual File Processing Commands Worksheet Resource: University of Phoenix Material: File Processing Commands Worksheet Resource: University of Phoenix Materials: Linux® Directory Log Complete the Linux® Directory Log located on your student website. Complete the University of Phoenix Material: File Processing Commands Worksheet located on your student website. See the Assignment 2 post in Main forum or Course Materials  POS 420 Week 3 Individual Linux® Script Worksheet Resource: University of Phoenix Material: Linux® Script Worksheet Complete the University of Phoenix Material: Linux® Script Worksheet located on your student website. See the Assignment 3 post in Main forum or Course Materials forum for detailed...

Words: 324 - Pages: 2

Free Essay

Zara Case

...According to the point of view of Salgado , Zara is getting bigger and bigger and its operating system getting more and more obsolete. Thus, it gives Zara to have a comparative advantage because for a strategic perspective. Although Zara's advantage over its competitors is not so much a result of IT leverage, the sustainability of its competitive edge might be at risk due to a lack in IT investment.The current assumption for the IT investment states about 18,000 hours. The Zara's staff devoted to IT contains about 50 people divided in several departments. So we can suppose that only 10 people are devoted to POS software and so 10 people are able to handle this project. With a brief calculation, we can figure that it would take too much time to set up this project with an internal team. That is why we are prone to think that externalize would provide a more efficient solution, completely handle by an outsourced professional team. It could be a little more expensive at short and long term that is why if we choose this option we have to integrate a training system of our staff to lower the outsourced fees. An important point is that Zara has always developed its own IT solutions and if we make it through subcontractors we are not sure that it would match with Zara values or way of doing. Zara has been used to make it alone. Thus we think that some member of the IT staff could work with subcontractors in order to lower these expenses and help them to create an It solution...

Words: 600 - Pages: 3

Free Essay

Zara, It for Fast Fashion

...Case Study: Zara, IT for Fast Fashion EXECUTIVE SUMMARY The action recommended is to purchase a new POS system to support integration of all levels of the business from manufacturing to the customer. Because of Zara’s current solid financial position and leader in the marketplace, Zara will withstand the initial interruption of business to allow implementation of new technology due to their current solid financial position and leadership. KPIs are implemented to provide efficiencies within manufacturing, the DCs and sales to enhance the successful unique business model. ISSUE IDENTIFICATION The following are a list of issues/problems that must be addressed: • DOS system is no longer supported by Microsoft • In-house applications created by vendor • Writing applications versus buying applications • Transparency between stores • Order processing time • No formal IT process for setting budget or deciding on specific technology, investments or projects • Store managers scope of responsibility is high versus no discretion for store layout • No performance measures • No forecasting, buy and respond “on the fly” • Not high end fashion • High capital costs for DCs, manufacturing, and factories • Small batch production ENVIRONMENTAL AND ROOT CAUSE ANALYSIS 1. DOS system is no longer supported by Microsoft since 2003. Zara chooses to write all their applications in house. This matches the philosophy for...

Words: 1742 - Pages: 7

Free Essay

Zara

...Case Supply Chain Management Module 1 Date: October 7th, 2009 Executive Summary My decision is to upgrade the POS terminals used by Zara to ensure the company is current with technology and compatible with the hardware vendor’s machines. January 1st 2004 is the scheduled date the POS terminals will be upgraded and running in all Zara stores around the world. The upgraded POS terminals will include more applications for store managers such as the ability to look up their own inventory balances and the inventory balances of other store locations. This factor alone is considered an advantage by store managers as it will allow each store to look up what they have been selling the most as well as avoid having to canvass the store at the end of each day. Secondly in the event Inditex’s hardware vendor upgrades their machines Zara’s POS terminals will be up to date with current technology. Key Assumptions It is anticipated Inditex’s hardware vendor may update their machines in order to stay current with technology. Inditex has no control over whether or not their hardware vendor will update their machinery therefore it would be wise to stay current with technology to avoid disrupting their largest chain of stores (Zara). Updating the POS terminals is not a guarantee of easing or rather improving current operations, however the statement of issues provided in the next section will elaborate further on why staying...

Words: 2351 - Pages: 10

Free Essay

Zara Case Question 4

...in the stability of the POS terminal after the OS upgrade, for the reason that the POS application runs stable on the DOS-system at the time. But, after upgrading the OS and porting the POS application, there is a risk of reducing the stability of the POS application due to bugs in the application (after porting). At the same time the investment costs could be avoided if choosing to remain at the old DOS system. One advantage of upgrading the OS is the fact that the PDAs can become interconnected with other stores or the headquarters. This can increase efficiency as employees will be able to look at the inventory of other stores and search for the products which are sold-out at their own store for instance. Another advantage is that the MS DOS system became obsolete and unsupported as of 2003, which means that the POS terminal will not be compatible with the POS software, and in such manner a change in the OS is inevitable. Therefore, we are in favour of investing in a new OS, and the next question is which OS is the best option. When looking in a short-term view, Linux comes out as the best option, as of €0 license cost and only an annual maintenance fee to be paid. As Zara intends to invest in the OS for long-term period, then UNIX is the best choice for a new OS, in the first place because of the low annual maintenance fee, despite the high license costs. The tables below provide us with the costs necessary for the DOS upgrade of the POS terminals (per store)...

Words: 484 - Pages: 2

Premium Essay

Female Pirates

...Female Pirates Kristina A. Paxton (Shaarda) Excelsior College Women have been held to have particular power over the sea. There is an ancient superstition that women are not good for ships. The contradiction between woman as sea power and woman as a sea jinx is hard to understand. Women pirates however rarely brought bad luck to a ship, they were actually very good luck, and their loss to a ship often brought an end to that ships sailing days. The women that sailed the seas came from all walks of life; there were royals such as Queen Teuta of Illyria who sailed in the 200’s B.C., as well as the Irish seafaring clanswoman, Grace O’Malley, who was practically royalty in that culture in the 1500’s. There were also illegitimate daughters of maids and merchants such as Anne Bonny and Mary Read who sailed the Caribbean in the 1600’s, and finally a Chinese prostitute who controlled one of the most powerful pirate fleets the world has ever seen in the 1800’s. Female pirates were once again seen on the seas recently when a woman pirate named Sister Ping (Ching Chui Ping) smuggled Chinese immigrants to the United States and England was caught and imprisoned in 1990. The Pirate code forbade women from being on board a pirate ship, so women typically dressed and carried themselves as a man in order to become a pirate. These women pirates were truly exceptional in their determination and strength of character to seek their fortune in what was not only a dangerous way of life, but...

Words: 2906 - Pages: 12

Free Essay

Becoming Too Dependent on Modern Technology Many Are Becoming Too Dependent on Modern Technology; However This Makes Them to Lack Writing Skills, Critical Thinking Skills and Communication Skills. Many of Them Would

...Topic: Collection of local sightseeing tours for foreign visitors In 360Lantau Explorer Tour of Ngong Ping Cable car and Ngong Ping Village the lsland has become a new attraction in Hong Kong. It can get close to nature on this tour.and also can in Buddha Statue at the Po Lin Monastery and enjoy a great vegetarian meal there. After I find the information of the tour brochures for foreign visitors .I choose the LA360-360Lantau Explorer Tour for foreign visitors . It is because this is new method to sightseeing in Hong Kong. You may have a good view to sightseeing include Hong Kong International Airport, South China Sea, the Tian Tan Buddha Statue, as well as the flora and fauna of North Lantau Country Park .The 360Lantau Explorer tour from Ngong Ping Village. If you start from Ngong Ping Village walk to Big Buddha just 15minute left very convenient. [pic] Q1.What are the target customers of the tour? Answer: the target customers of the tour is foreign visitors and vegetarian [pic] Q2.What are the objectives of the tour? Answer: the objectives of the tour is in Ngong ping village, visitors can learn cultural of china. Ngong ping Village provides its visitors with an interesting array of retail experiences. There have many special gift and authentic souvenir items for visitors to choose from, which will provide the perfect memento of your journey of Enlightenment.Also visitors can try vegetable foods of china style. [pic] Night of Ngong ping village...

Words: 769 - Pages: 4

Premium Essay

Ching Shih Leadership Paper

...Cheng Shih A Source of Autocratic Leadership in Piracy Cheng Shih A Source of Autocratic Leadership in Piracy Laura Hawkins Management 490 Laura Hawkins Management 490 Cheng Shih: Autocratic Pirate Queen Leadership is described as a process of social influence in which one person can enlist the aid and support of others in the accomplishment of a common task. A successful leader is one who can lead their followers to a predetermined goal. Cheng Shih was a very successful leader, who built up her followership and equity and even overpowered the Chinese Army. She was a ruthless leader who gained power though the fear of her followers. This kind of autocratic leadership was the reason that she was so successful. Her followers were pirates who, at any moment, could defy her authority and overpower her. Their fear of her authority was the reason that they followed her lead. Cheng Shih was born in 1775 in China (Ossian). All that much is known about her before she married Cheng I, a commander of a pirate fleet, was that she was a prostitute on a floating brothel. When she married Cheng I in 1801 the two of them began to build up their coalition of ships and sailors. The two of them adopted a son named Chang Pao. In 1807 her husband passed away, leaving her the sole leader of a pirate coalition of 400 ships and over 70,000 sailors (Harry, 2008). Cheng took the piracy and turned it into a business. She expected to gain from any venture that her followers attempted...

Words: 1786 - Pages: 8

Free Essay

Zadaniaa

...Wyprodukowano 25 000 sztuk wyrobów gotowych. Produkcja nie zakończona na koniec okresu nie występowała. Ile wynosi koszt wytworzenia jednego wyrobu gotowego ? Zadanie 2 Przedsiębiorstwo produkcyjne SARA produkuje jeden rodzaj wyrobów. Na koniec miesiąca na kontach kosztów (po rozliczeniu kosztów wydziałowych) zanotowano następujące pozycje : Materiały 32 250 zł, wynagrodzenie 19 500 zł , koszty wydziałowe 14 625 zł W bieżącym miesiącu wyprodukowano 7500 sztuk wyrobów gotowych. Obliczyć koszt wytworzenia sztuki wyrobów z podziałem na pozycję kalkulacyjne Zadanie 3 Przedsiębiorstwo produkcyjne ASTRA produkuje jeden rodzaj wyrobów na koniec miesiąca na koncie Produkcja podstawowa ( po rozliczeniu kosztów wydziałowych ) posiada następujące pozycje : - materiały 60 480 zł - wynagrodzenia 80 640 zł - koszty wydziałowe 40 320 zł W bieżącym miesiącu wyprodukowano 6000 sztuk wyrobów gotowych i 2400 sztuk wyrobów nieskończonych przerobionych w 30 %. Na podstawie powyższych danych obliczyć koszt wytworzenia sztuki wyrobu gotowego z podziałem na pozycję kalkulacyjne Zadanie 4 Przedsiębiorstwo produkcyjne MEWA produkuje jeden rodzaj wyrobów na koniec miesiąca na koncie Produkcja podstawowa ( po rozliczeniu kosztów wydziałowych ) posiada następujące pozycje: - materiały 120 000 zł - wynagrodzenia bezpośrednie 73 500 zł- koszty wydziałowe 63 000 zł W bieżącym miesiącu wyprodukowano 9000 sztuk wyrobów gotowych i 3000 sztuk wyrobów nieskończonych przerobionych...

Words: 807 - Pages: 4

Free Essay

Ms Windows vs. Unix/Linux

...Ms Windows vs. Unix/Linux MS Windows vs. Unix/Linux University of Phoenix POS/420 Introduction to Unix October 20, 2008 Scott Stewart MS Windows vs. Unix/Linux  The Microsoft and Linux operating systems have been long considered to be in a competition to be the best operating systems on the market. This paper will compare and contrast these operating systems to help the consumer decide which is right for his or her environment. Such subjects as; cost, market share, hardware requirements, file processing, programming capabilities, availability if application software, networking, and user interface will be examined. Cost The cost difference between running a Linux desktop / server compared to a Microsoft desktop / server is overwhelming. In all scenarios, Linux ends up being the cheaper and more “functionality rich” option. In the first scenario, let’s compare the cost difference between a Linux and Microsoft desktop. The first cost difference in this scenario is the cost of obtaining the software. A copy of most Linux distributions can be obtained for under $60 dollars, and free if it is downloaded from such sites as www.linuxiso.com. A Microsoft desktop is not so cheap however; the initial cost of purchasing a full copy of Windows Vista is currently $319.95, a much larger cost than that of Linux desktop. Functionality wise, both the Linux and Microsoft desktops provide the basic needs of the “home user,” however, such additional features as an Office...

Words: 324 - Pages: 2

Premium Essay

Senior Systrem Engineer

...College of Information Systems & Technology Bachelor of Science in Information Technology with a Concentration in Information Management The Bachelor of Science in Information Technology (BSIT) degree program is focused on the acquisition of theory and the application of technical competencies associated with the information technology profession. The courses prepare students with fundamental knowledge in core technologies, such as systems analysis and design; programming; database design; network architecture and administration; web technologies; and application development, implementation, and maintenance. This undergraduate degree program includes 45 credits in the required course of study and 15 credits in the concentration. Some courses have prerequisites. In addition, students must satisfy general education and elective requirements to meet the 120-credit minimum, including a minimum of 48 upper-division credits required for completion of the degree. At the time of enrollment, students must choose a concentration. The Information Management concentration is designed to provide coverage of the collection, architecture, modeling, retrieval and management of data for meaningful presentation to the organization. This concentration prepares students to develop, deploy, manage, and integrate data and information systems to support the organization. Note: The diploma awarded for this program will read: Bachelor of Science in Information Technology and will not reflect the concentration...

Words: 1892 - Pages: 8

Free Essay

Linux and Windows Server Critique

...Server Critique Team C POS 420 June 25, 2012 Yevgeniy Tovshteyn Linux vs. Windows Both Linux and Windows are operating systems with advantages and differences in functionality and user friendliness. With networking becoming an important part of company operation in this day and age. Kudler will come to depend on networking for availability to the marketplace via the Internet, while requiring their internal systems for email, Voice over Internet Protocol (VoIP) phone systems, and using business data. Linux and Windows are the only 2 operating systems that have grown to the top level in the field of networking. Learning Team C examines these types of strengths and weaknesses regarding security, administration, performance, and programming. Kudler Fine Foods Current Systems: 3 locations: La Jolla, Del Mar, and Encinitas La Jolla Novell 4.11 Server for POS 4 POS Workstations with Pentium II, Windows 9X 1 Standalone UPS (Uninterruptable Power Supply) 1 Server with Inventory Spreadsheet with Pentium II, 64mg Ram, Windows 9X, external CD burner and bubble jet printer. 1 Server with NT Server 1 56K modem Del Mar Novell 4.11 Server for POS 4 POS Workstations with Pentium II, Windows 9X 1 Standalone UPS (Uninterruptable Power Supply) 1 Server with Inventory Spreadsheet with Pentium II, 64mg Ram, Windows 9X, external CD burner and bubble jet printer. 1 Server with NT Server 1 56K modem Encinitas Novell 4.11 Server for POS 4 POS Workstations with Pentium...

Words: 1833 - Pages: 8