Skip to content

Commit

Permalink
wget -> wget -q
Browse files Browse the repository at this point in the history
Cleaning up wget output in easiest way.
  • Loading branch information
craigsteffen committed Aug 15, 2024
1 parent 1ba559e commit 86aba50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions downloader/CM_B_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ def run(self):
# if the incoming message specified a maparea file, get it
if maparea_file_URL:
# rm -f is because there's no clean way to tell wget to overwrite files; so this guarantees that the file is the newest downloaded one.
DL_command="cd "+my_data_dir+" ; mkdir -p "+external_data_path+" ; cd "+external_data_path+" ; rm -f "+maparea_data_file_name+" ; wget "+maparea_file_URL+" >& /tmp/trash.out"
DL_command="cd "+my_data_dir+" ; mkdir -p "+external_data_path+" ; cd "+external_data_path+" ; rm -f "+maparea_data_file_name+" ; wget -q "+maparea_file_URL+" >& /tmp/trash.out"
logging.debug("about to run maparea download command: "+DL_command)
os.system(DL_command)
#time.sleep(2)
logging.debug("finished maparea download command")

# if the incoming message specified an image file, get it
if tif_file_URL:
DL_command="cd "+my_data_dir+" ; mkdir -p "+external_data_path+" ; cd "+external_data_path+" ; wget "+tif_file_URL+" >& /tmp/trash.out"
DL_command="cd "+my_data_dir+" ; mkdir -p "+external_data_path+" ; cd "+external_data_path+" ; wget -q "+tif_file_URL+" >& /tmp/trash.out"
# check for file before downloading
fetch_file_path=os.path.join(my_data_dir,external_data_path);
fetch_file_components=tif_file_URL.split("/")
Expand Down

0 comments on commit 86aba50

Please sign in to comment.