Sponsored Content
Top Forums Shell Programming and Scripting save weather radar to local time-named file every 15 minutes Post 302205407 by brucewestfall on Saturday 14th of June 2008 11:12:52 PM
Old 06-15-2008
Question save weather radar to local time-named file every 15 minutes

I think I can do this myself now, but I am always amazed by how people can do things cleaner and simpler than I end up doing...

Using cron, I want to save the image found at:

http://radar.weather.gov/ridge/Conus...ntgrtlakes.gif

every 15 minutes to a local file , such as

/home/bruce/radarpics/2008-06-14_23:15.gif

Some Nuggets I've found so far:
#!/bin/sh -xv
# TEST - Assign Date Value to Variable
d='date +%y%m%d%H%M%S'
echo $d
file="file_$d"
echo $file

The format I would want is:
date -d "-10 seconds" "+%H:%M:%S"

So, what do you think is the BEST way to do this??

(I just discovered this board, but very impressed by the traffic and knowledge I've seen so far!)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can I create a file with current time - 60 minutes

I'm using k-shell in unix and I want to create a file with the current system time - 60 minutes. I know I can use touch to create the file, but I'm having trouble specifying how tell it to use the current time less 60 minutes. Any ideas??? (4 Replies)
Discussion started by: DaveyTN
4 Replies

2. UNIX for Advanced & Expert Users

Help me in receiving,validating emails and save them in local directory

hi, I'm working on a project where I get mails from different customers, what I need to do is I need to check if it is genuine mail and if there is any attachment I need to validate them and extract the message and save in the local directory as a text file say and then I need to direct it to... (4 Replies)
Discussion started by: sudharsanc
4 Replies

3. Shell Programming and Scripting

how to check weather file is blank or not?

Dear All I want to do following task. Kindly suggest. In my script every hour one file is genarated. say xyz.txt. Now if this file contain some data then i want to do task A and if file is blank then i want to do nothing. Kindly help me to do this. regards jaydeep (5 Replies)
Discussion started by: jaydeep_sadaria
5 Replies

4. UNIX for Dummies Questions & Answers

How to verify weather it is a ebcdic file or not

Hi all, Please tell me how to verify weather it is a ebcdic file or not . I checked with file commond but it is giving like International Language text. Regards, Chaitu (0 Replies)
Discussion started by: c_chaitanya
0 Replies

5. Shell Programming and Scripting

Calculate the time difference between a local file and a remote file.

I m stuck with a issue. I need to calculate the time difference between two files.. one on the local machine and one on the remote machine using a script. Can any one suggest the way this can be achevied Thanks, manohar (1 Reply)
Discussion started by: meetmano143
1 Replies

6. Linux

Check weather a file is in use or not?

Hi, Hi want to check weather a file is being used by using a command or java code or shell script. So, can any body give me some idea.. Thanks Buddhika (3 Replies)
Discussion started by: cse.buddhika
3 Replies

7. Shell Programming and Scripting

How to send a file in UNIX through email which is created only 15 minutes before the current time?

I wanted to send an email to the client whenever there is failed record created in a /feed/HR-76/failed folder after processing of feed file. I can find out with the help of below script that what is the new file created but that file didn't make just 15 minutes before. ... (1 Reply)
Discussion started by: puneetkhullar
1 Replies

8. Shell Programming and Scripting

Grep a log file for the last 5 minutes of contents every 5 minutes

Hi all, System Ubuntu 16.04.3 LTS i have the following log INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042 INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies

9. Shell Programming and Scripting

Check file creation Time minutes and if file older then 5 minutes execute some stuff

Hello all, Info: System RedHat 7.5 I need to create a script that based on the creation time, if the file is older then 5 minutes then execute some stuff, if not exit. I thought to get the creation time and minutes like this. CreationTime=$(stat -c %y /tmp/test.log | awk -F" " '{ print... (3 Replies)
Discussion started by: charli1
3 Replies

10. UNIX for Beginners Questions & Answers

Find if create time of last created file in a directory is older than 5 minutes

A process xyz is running and creating file1, file2, file3, .... filen. how do i know if the process has stopped and createtime of the last file (filen) is older than 5 minutes? OS is AIX (3 Replies)
Discussion started by: malaika
3 Replies
METAR(1)							       metar								  METAR(1)

NAME
metar - A METAR downloader/decoder SYNOPSIS
metar [-dvh] stations DESCRIPTION
METAR reports are meteorological weather reports for aviation. metar is a small program which downloads weather reports for user-specified stations and optionally decodes them into a human-readable format. Aviation weather stations are commonly referred to by ICAO designator. The ICAO is the International Civil Aviation Organization, a inter- national standardization body for civil organization. For example, KJFK is the ICAO identifier for John F. Kennedy Airport in New York, New York, EHAM is the ICAO identifier for Amsterdam Schiphol Airport, The Netherlands, etc. OPTIONS
metar requires at least one station identifier to run. A full list of ICAO stations is available for download at http://weather.noaa.gov/data/nsd_bbsss.txt. metar supports three additional options: -d Decode the retrieved weather reports into a human-readable format. -v Be verbose while retrieving a report. -h Show a short help summary ENVIRONMENT
If the environment variable METARURL is set, metar will attempt to download the weather report from that location, rather than from the default (the NOAA web site). The value of METARURL will be postfixed with the capitalized station ID, followed by the .TXT extension. For example, if you have METAR reports in your home directory, setting METARURL to $HOME and asking for the weather report of ehgr will result in the file $HOME/EHGR.TXT to be read. AUTHOR
Kees Leune <kees@leune.org> metar 20061030.1 2005-04-08 METAR(1)
All times are GMT -4. The time now is 06:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy