Question

In: Computer Science

How many times will the following crontab entry execute during January 2018? 0 0 * 1...

  1. How many times will the following crontab entry execute during January 2018?
    0  0  *  1  1  rm -r /root/backup/*
  2. How many times will the following crontab entry execute during January 2018?
    0  0  *  1  6  rm -r /root/backup/*
  3. List all of the dates the following crontab entry will execute during 2018 (this answer is a little tricky).
    0  0  1/10  *  7  rm -r /root/backup/*

Solutions

Expert Solution

  1. How many times will the following crontab entry execute during January 2018?
    0  0  *  1  1  rm -r /root/backup/*

This crontab will run at 00:00 on every monday in January, which means 5 times, i.e., on 1 January 2018, 8 January 2018, 15 January 2018, 22 January 2018 and 29 January 2018

  1. How many times will the following crontab entry execute during January 2018?
    0  0  *  1  6  rm -r /root/backup/*

This crontab will run at 00:00 on every saturday in January, which means 4 times, i.e., on 6 January 2018, 13 January 2018, 20 January 2018, 27 January 2018

  1. List all of the dates the following crontab entry will execute during 2018 (this answer is a little tricky).
    0  0  1/10  *  7  rm -r /root/backup/

This crontab will run at 00:00 on every 10th day-of-month from 1 through 31 and on Sunday, which means:

There are 2 parts, one that runs at 00:00 every 10th day from 1 through 31,i.e.,

January 1,11,21,31

february 1,11,21

March 1,11,21,31

April 1,11,21

May 1,11,21,31

June 1,11,21

July 1,11,21,31

August 1,11,21,31

September 1,11,21

October 1,11,21,31

November 1,11,21

December 1,11,21,31

Another that runs at 00:00 on every Sunday:

January 7, 14 ,21 , 28

February 4, 11, 18, 25

March 4, 11, 8, 25

April 1, 8, 15, 22, 29

May 6, 13, 20, 27

June 3, 10, 17, 24

July 1, 8, 15, 22, 29

August 5, 12, 19, 26

September 2, 9, 16, 23

October 7, 14, 21, 28

November 4, 11, 18, 25

December 2, 9, 16, 23, 30


Related Solutions

How many times will an "X" appear in the following nested loop? for (outer = 0;...
How many times will an "X" appear in the following nested loop? for (outer = 0; outer <=5; outer++) {for (inner = 1; inner <=4; inner+1) {cout<<("X");} } 9 10 20 24 none of the above
Mijka Company was started on January 1, 2018. During 2018, the company experienced the following three...
Mijka Company was started on January 1, 2018. During 2018, the company experienced the following three accounting events: (1) earned cash revenues of $31,600, (2) paid cash expenses of $14,200, and (3) paid a $2,500 cash dividend to its stockholders. These were the only events that affected the company during 2018. Required Record the effects of each accounting event under the appropriate general ledger account headings. Prepare an income statement, statement of changes in stockholders’ equity, and a balance sheet...
6. Scotti Company had the following transactions during the year 2018: *On January 1, 2018, its...
6. Scotti Company had the following transactions during the year 2018: *On January 1, 2018, its first year of business, Scotti Company issued 800,000 shares of $5 par value Common Stock for $18 per share. *On July 5, 2018, Scotti repurchased 200,000 shares at $20 per share. *On August 4, 2018, Scotti reissued 50,000 of its Treasury shares at $25 per share. *On September 15, 2018, Scotti reissued 50,000 of its Treasury shares at $23 per share. *On December 29,...
C# programming When a loop might execute many times, it becomes increasingly important to consider the...
C# programming When a loop might execute many times, it becomes increasingly important to consider the number of evaluations that take place. How can considering the order of evaluation of short-circuit operators affect the performance of a loop?
Halogen Laminated Products Company began business on January 1, 2018. During January, the following transactions occurred:...
Halogen Laminated Products Company began business on January 1, 2018. During January, the following transactions occurred: Jan. 1 Issued common stock in exchange for $113,000 cash. 2 Purchased inventory on account for $32,000 (the perpetual inventory system is used). 4 Paid an insurance company $2,040 for a one-year insurance policy. 10 Sold merchandise on account for $11,700. The cost of the merchandise was $6,700. 15 Borrowed $27,000 from a local bank and signed a note. Principal and interest at 10%...
Halogen Laminated Products Company began business on January 1, 2018. During January, the following transactions occurred:...
Halogen Laminated Products Company began business on January 1, 2018. During January, the following transactions occurred: Jan. 1 Issued common stock in exchange for $108,000 cash. 2 Purchased inventory on account for $43,000 (the perpetual inventory system is used). 4 Paid an insurance company $3,360 for a one-year insurance policy. 10 Sold merchandise on account for $12,800. The cost of the merchandise was $7,800. 15 Borrowed $38,000 from a local bank and signed a note. Principal and interest at 10%...
Halogen Laminated Products Company began business on January 1, 2018. During January, the following transactions occurred:...
Halogen Laminated Products Company began business on January 1, 2018. During January, the following transactions occurred: Jan. 1 Issued common stock in exchange for $118,000 cash. 2 Purchased inventory on account for $27,000 (the perpetual inventory system is used). 4 Paid an insurance company $1,440 for a one-year insurance policy. 10 Sold merchandise on account for $11,200. The cost of the merchandise was $6,200. 15 Borrowed $22,000 from a local bank and signed a note. Principal and interest at 10%...
Maben Company was started on January 1, 2018, and experienced the following events during its first...
Maben Company was started on January 1, 2018, and experienced the following events during its first year of operation: Acquired $35,000 cash from the issue of common stock. Borrowed $47,000 cash from National Bank. Earned cash revenues of $63,000 for performing services. Paid cash expenses of $52,500. Paid a $2,500 cash dividend to the stockholders. Acquired an additional $35,000 cash from the issue of common stock. Paid $12,000 cash to reduce the principal balance of the bank note. Paid $46,000...
Rosie Dry Cleaning was started on January 1, 2018. It experienced the following events during its...
Rosie Dry Cleaning was started on January 1, 2018. It experienced the following events during its first two years of operation: Events Affecting 2018 Provided $32,050 of cleaning services on account. Collected $25,640 cash from accounts receivable. Adjusted the accounting records to reflect the estimate that uncollectible accounts expense would be 1 percent of the cleaning revenue on account. Events Affecting 2019 Wrote off a $240 account receivable that was determined to be uncollectible. Provided $37,402 of cleaning services on...
14. How many times does "#" print? for(int i = 0; i < 10; ++i) {...
14. How many times does "#" print? for(int i = 0; i < 10; ++i) { if(i == 2 || i==4 || i==6) { continue; } cout << "#"; }
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT