Sponsored Content
Full Discussion: Changing time-stamp with sed
Top Forums Shell Programming and Scripting Changing time-stamp with sed Post 302875407 by disedorgue on Tuesday 19th of November 2013 11:57:00 AM
Old 11-19-2013
He said:
allways to full ten-minutes Smilie
This User Gave Thanks to disedorgue For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to MV without changing Time Stamp

Hi, I need to move the set of files, and it should be same time stamp as previous. How to do this? (3 Replies)
Discussion started by: redlotus72
3 Replies

2. Shell Programming and Scripting

Date Time Stamp

I'm trying to write a script that checks the DTS of a file the compares it to the current time. If greater that 60 mins has gone by and the file has not been written to alert. So far I have the time pulled from the file but I dont know how to compare the times against a 60 min difference. ... (2 Replies)
Discussion started by: jarich
2 Replies

3. Shell Programming and Scripting

copying a file without changing date stamp.

Hi, I am using the below copy command, to copy the file sbn to sbn1, cp sbn sbn1 but its changing the date stamp of file sbn1, but i dont want to change the date stamp of sbn1. Could you please help me out in this. (3 Replies)
Discussion started by: shivanete
3 Replies

4. Shell Programming and Scripting

Time stamp calculation

Hi all; I'm relatively new to scripting,I am working on a monitoring script.....where in i have to write subroutine which does the follows: It will check the time stamp of a file ( Oracle remarchive files) and compare it with existing time.If the time difference happen to be more than 90... (6 Replies)
Discussion started by: maverick_here
6 Replies

5. Shell Programming and Scripting

Changing File Time Stamp (Bash Script)

I need some help recovering from a "slight" screwup. We just moved 3 TB of data from one RAID Array to another. Low lever archive files. This was done with a regular cp (for some reason) and now we have lost all the timestamps on the files, and we urgently need to get the timestamps back on these... (7 Replies)
Discussion started by: chj
7 Replies

6. UNIX for Dummies Questions & Answers

How to get the next time stamp in perl?

Hi, I have to find the next time stamp in perl. Here is the code. @time = loaltime(time); print "\n Present time: $time:$time:$time \n"; For example if the time is: "12:55:02" after some process the time becomes 1:00:00. How do i check when it becomes 00:00 i.e from "12:55:02... (0 Replies)
Discussion started by: vanitham
0 Replies

7. Shell Programming and Scripting

regarding time stamp

hi everyone i am facing a strange problem here suppose content of my file is a=1,2,3 b=2,3,4 c=4,5,6 time= now the problem is i want to add value in front of time variable and the value should be i format only "HHMMSS" so it should be like this a=1,2,3 b=2,3,4 c=4,5,6... (3 Replies)
Discussion started by: aishsimplesweet
3 Replies

8. Shell Programming and Scripting

How to get time duration between two human readable time stamp in Unix?

Here is two time I have: Jul 12 16:02:01 Jul 13 01:02:01 and how can I do a simple match to get difference between two time which is 09:00:00 Thanks in advance. (3 Replies)
Discussion started by: ford99
3 Replies

9. Solaris

System time and Cron time stamp not matching

On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help here is what i get when i check for system date infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies

10. Shell Programming and Scripting

Difference between time stamp

Hi All i have a file data like below format A, B 2016-04-14 16:30:00,2016-04-14 16:31:17 2016-04-14 16:40:00,2016-04-14 16:41:10 2016-04-14 16:50:00,2016-04-14 16:50:41 2016-04-14 17:00:00,2016-04-14 17:00:35 2016-04-14 17:10:00,2016-04-14 17:11:48 2016-04-14 17:20:00,2016-04-14 17:20:37 i... (2 Replies)
Discussion started by: Tarak_nath
2 Replies
WATCH-MIMEDEFANG(8)					      System Manager's Manual					       WATCH-MIMEDEFANG(8)

NAME
watch-mimedefang - Keep an eye on mimedefang-multiplexor SYNOPSIS
watch-mimedefang [options] DESCRIPTION
watch-mimedefang is a Tk script which graphically displays the status of mimedefang-multiplexor(8). Note that Tcl/Tk 8.0 or higher is required to run watch-mimedefang. DISPLAY
watch-mimedefang's display is divided into three main areas, from top to bottom: o The graph display shows six graphs representing various statistics about the multiplexor. o The control area shows the maximum number of slaves, number of busy slaves, and number of idle slaves. The "Control Command" text entry lets you monitor remote MIMEDefang servers; see "REMOTE MONITORING" for details. The "10s", "1m", "5m" and "10m" checkboxes allow you to enable or disable the graphing of statistics averaged over the last 10 sec- onds, 1 minute, 5 minutes and 10 minutes. The "Reread Filters" button forces the multiplexor to reread filter rules. The "Quit" button terminates watch-mimedefang. o The scale at the bottom lets you change the update interval (default 500ms). Be aware that frequent updating may make watch-mimede- fang consume a significant fraction of CPU time. THE GRAPH AREA
The graph area contains six graphs: o Busy Slaves This graph shows the number of busy slaves each time the statistics are sampled. o Slaves/scan This graph shows the average number of busy slaves each time a message was scanned. The red plot shows the average over the last ten seconds, the blue plot shows the average over the last minute, and the green and yellow plots show the average over the last five and ten minutes, respectively. o Latency (ms) This graph shows the average time taken by each SCAN command over the last ten seconds, one minute, five minutes and ten minutes. o Messages/s This graph shows the average number of messages per second that were scanned. o Activations/s This graph shows the average number of new slaves activated per second. o Reaps/s This graph shows the average number of slaves that have terminated per second. If the Activations and Reaps increase significantly, it could indicate heavy load, or an error causing filters to terminate abnor- mally. If only Activations increase, then it probably indicates a sudden increase in e-mail volume. If only Reaps increase, then it probably indicates a quiet time just after a period of heavy mail volume. You can enable or disable the ten second, one minute, five minute or ten minute plots by clicking on the "10s", "1m", "5m" or "10m" check- box. REMOTE MONITORING
Running watch-mimedefang on your actual mail server poses two problems: You need Tcl/Tk and the X client libraries installed, and the CPU consumption of watch-mimedefang can be considerable. A better method is to run watch-mimedefang on a desktop machine, but have it monitor the mail server with a remote session. The best way to establish a remote session is via SSH. For example, if you are running MIMEDefang on "mail.mydomain.net", you can type the following into the Control Command entry box and press enter: ssh root@mail.mydomain.net md-mx-ctrl You must have a public/private key for the target machine and you must be running ssh-agent or equivalent; you cannot use an ssh command that requires entry of a password or passphrase. Assuming your SSH setup is correct, watch-mimedefang will open an SSH connection to mail.mydomain.net and exchange low-bandwith information over that session for monitoring purposes. COMMAND-LINE OPTIONS watch-mimedefang accepts the following command-line options: -command cmd Use cmd as the control command. You may need to quote cmd -interval msec Set the update interval to msec milliseconds. -10s flag Enable the "10s" graph plot if flag is 1, or disable it if flag is 0. -1m flag Enable the "1m" graph plot if flag is 1, or disable it if flag is 0. -5m flag Enable the "5m" graph plot if flag is 1, or disable it if flag is 0. -10m flag Enable the "10m" graph plot if flag is 1, or disable it if flag is 0. -title string Add string to the title of the main window. -help Print usage information. EXAMPLE
As an example, to monitor MIMEDefang on the machine "mail.mydomain.net" updating once a second, with the 5m and 10m plots turned off, use: watch-mimedefang -command 'ssh root@mail.mydomain.net md-mx-ctrl' -interval 1000 -5m 0 -10m 0 -title "mail" AUTHOR
watch-mimedefang was written by David F. Skoll <dfs@roaringpenguin.com>. The mimedefang home page is http://www.mimedefang.org/. PERMISSIONS
watch-mimedefang uses md-mx-ctrl; therefore, it probably needs to be run as root or the same user as mimedefang-multiplexor, or (if you are monitoring a remote machine), the SSH connection must be done as root or the MIMEDefang user. SEE ALSO
mimedefang.pl(8), mimedefang-filter(5), mimedefang(8), mimedefang-protocol(7), md-mx-ctrl(8), watch-multiple-mimedefangs(8) 4th Berkeley Distribution 24 October 2002 WATCH-MIMEDEFANG(8)
All times are GMT -4. The time now is 06:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy