Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python Very frequently there is a need to monitor a presence of a file in some directory, this maybe needed for: Automated deployment jobs -

python

Very frequently there is a need to monitor a presence of a file in some directory, this maybe needed for:

  • Automated deployment jobs - every time a new bundle is uploaded, deploy it
  • Synch processes - there are multiple clustered servers, and they need to have same files on them
  • Error file - if file is ever present, then there is an error - send an email

write a program that will take a command line argument of full path and prints True if the file/directory at the provided location is present and False if it doesn't Change program such that it runs indefinitely, monitoring a file/directory at a certain location and if the file disappears, then the program should print "Alert"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions