Sponsored Content
Full Discussion: tail for 15 mins
Top Forums Shell Programming and Scripting tail for 15 mins Post 302606230 by Scrutinizer on Saturday 10th of March 2012 05:43:30 AM
Old 03-10-2012
If I look at the OP's requirement it should be more like:

Code:
while :
do
  tail -f file & pid=$!
  sleep 900
  kill $pid
  sleep 600
done

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

files created within last 10 mins

Any simple 1 liners to check a directory to see if a file was created within the last 10 mins? (5 Replies)
Discussion started by: frustrated1
5 Replies

2. Shell Programming and Scripting

file old than 10 mins to alert

Hello We have to monitor a FTP utility where we have to monitor for checking presence of a file in directory With max time allowed for a file to stay in the directory on FTP client server as 10 mins. The only way we are going to be able to do what we are lookign for is to write a script to... (1 Reply)
Discussion started by: vivkas
1 Replies

3. UNIX for Advanced & Expert Users

getting time mins ago

Hi I trying to get 5 mins ago time using below command echo `date +%R -d "1 min ago"` but this is giving only current time. Please help (6 Replies)
Discussion started by: cka
6 Replies

4. UNIX for Advanced & Expert Users

How to test the script for every 30 mins

Test job to make sure pwctest service is up Test script which can run every 30 mins to make sure pwctest is available. a) If Error , script should send email to Tech. plz help me out for this script i'm waiting for reply.....plz (7 Replies)
Discussion started by: ksrivani
7 Replies

5. Shell Programming and Scripting

invoke this command after every 10 mins

Hi, I have an command which find the files modified within last 3 days and then after selecting the files from the location it make the tar format and send it to the specified destination ...now I want that this task to be automative ..that is it should happen after every 5 minutes ..plz guide me... (5 Replies)
Discussion started by: Neera
5 Replies

6. Shell Programming and Scripting

Joining multiple files tail on tail

I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250. I would like to join all 250 of them together tail by tail as follows. For example stat.1000 a b c d e f stat.1001 g h i j k l So that my output... (2 Replies)
Discussion started by: kayak
2 Replies

7. UNIX for Dummies Questions & Answers

CPU usage for 5 mins

Hi Experts, Please help me in find the right way to create a script for the below task. Task - I need to create a alert script for CPU usage and I only need to alert when there is a process hold the CPU high for more than 5 mins. Initially five mins one use the ps command five mins... (5 Replies)
Discussion started by: senthil.ak
5 Replies

8. Shell Programming and Scripting

How to check if there is a file in the last 10 mins?

I have a script that runs every hour from the crontab (see the settings of the crontab below) (15 mins past the hour) 15 * * * * /home/usr/usr1/ProvAll This script saves two files in the following format now=`/bin/date '+%Y%m%d.%H%M%S'` file1.$now (for example) file1.20140722.031502... (12 Replies)
Discussion started by: knijjar
12 Replies

9. Shell Programming and Scripting

Need logs 5 mins old

I need 5 mins old logs to be dumped into a a new file. The date formats in the two log files are Can you suggect for both formats ? bash-3.2$ uname -a SunOS myserver 5.10 Generic_150400-26 sun4v sparc sun4v ---------- Post updated 05-04-16 at 12:24 AM ---------- Previous update was... (2 Replies)
Discussion started by: mohtashims
2 Replies

10. UNIX for Beginners Questions & Answers

Grep last 5 mins from logs

Hi, system date format Thu Jun 13 12:55:18 EDT 2019 My log date format 09.148.192.60 - - "GET /akamai/sureroute-test-object.html HTTP/1.1" 404 231 can someone please help me, how to get last 5mins of logs please ? I need the command Please wrap your samples/codes in CODE TAGS,... (3 Replies)
Discussion started by: scazed
3 Replies
GCALCLI(1)							   User Commands							GCALCLI(1)

NAME
gcalcli - Google Calendar Command Line Interface SYNOPSIS
gcalcli [options] command [command args] DESCRIPTION
gcalcli is a Python application that allows you to access your Google Calendar from a command line. It's easy to get your agenda, search for events, and quickly add new events. Additionally gcalcli can be used as a reminder service to execute any application you want. OPTIONS
--help this usage text --config <file> config file to read (default is '~/.gcalclirc') --user <username> google username --pw <password> password --cals [all, 'calendars' to work with (default is all calendars) default, - default (your default main calendar) owner, - owner (your owned calendars) editor, - editor (editable calendar) contributor, - contributor (non-owner but able to edit) read, - read (read only calendars) freebusy] - freebusy (only free/busy info visible) --cal <name> 'calendar' to work with (default is all calendars) - you can specify a calendar by name or by using a regular expression to match multiple calendars - you can use multiple '--cal' arguments on the command line --details show all event details (i.e. length, location, reminders, contents) --ignore-started ignore old or already started events - when used with the 'agenda' command, ignore events that have already started and are in-progress with respect to the specified [start] time - when used with the 'search' command, ignore events that have already occurred and only show future events --width the number of characters to use for each column in the 'cal' command output (default is 10) --nc don't use colors --cal-owner-color specify the colors used for the calendars and dates --cal-editor-color each of these argument requires a <color> argument --cal-contributor-color which must be one of [ default, black, brightblack, --cal-read-color red, brightred, green, brightgreen, yellow, --cal-freebusy-color brightyellow, blue, brightblue, magenta, --date-color brightmagenta, cyan, brightcyan, white, --border-color brightwhite ] COMMANDS
list list all calendars search <text> search for events - only matches whole words agenda [start] [end] get an agenda for a time period - start time default is 12am today - end time default is 5 days from start - example time strings: '9/24/2007' 'Sep 24 2007 3:30pm' '2007-09-24T15:30' '2007-09-24T15:30-8:00' '20070924T15' '8am' calw <weeks> [start] get a week based agenda in a nice calendar format - weeks is the number of weeks to display - start time default is beginning of this week - note that all events for the week(s) are displayed calm [start] get a month agenda in a nice calendar format - start time default is the beginning of this month - note that all events for the month are displayed and only one month will be displayed quick <text> quick add an event to your default calendar - example: 'Dinner with Eric 7pm tomorrow' '5pm 10/31 Trick or Treat' remind <mins> <command> execute command if event occurs within <mins> minutes time ('%s' in <command> is replaced with event start time and title text) - <mins> default is 10 - default command: 'gxmessage -display :0 -center -title "Ding, Ding, Ding!" %s' SEE ALSO
Wiki page <http://code.google.com/p/gcalcli/w/list> FILES
~/.gcalclirc If exists is consulted at startup for defaults. Formatted with a section header "gcalcli" followed by lines option: value. (See section OPTIONS above for list of valid options.) E.g., [gcalcli] user: bertie_ahern pw: topsecret cal: Irish Holidays AUTHOR
Brandon Philips, Yaroslav Halchenko, Barak A. Pearlmutter COPYRIGHT
Copyright (C) 2007 Brandon Philips <brandon@ifup.org> Copyright (C) 2009 Yaroslav Halchenko <debian@onerussian.com> gcalcli v1.4 November 2007 GCALCLI(1)
All times are GMT -4. The time now is 08:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy