Sponsored Content
Full Discussion: Date change related query
Top Forums UNIX for Dummies Questions & Answers Date change related query Post 27580 by franklo on Tuesday 3rd of September 2002 11:29:58 PM
Old 09-04-2002
Date change related query

Good day folks,

This is my first post on this board and I thank you in advance for helping me with this issue.

Any idea how I can synchronize server time with another timeserver but have my server lag behind by 2 seconds?

Meaning...I need a simple unix script that I can run as crone that takes as variable the url of another server and makes my server's time that of the other server plus 2 seconds. So if it is there 9:00 pm, my server's time becomes 21:00:02

All help is appreciated

Thanks

Frank
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Query related to #!/bin/sh

hi All Why is #!/bin/sh being used in most of the ksh scripts......? I have seen this (#!/bin/sh) being used at the start of the script Regards Suresh (2 Replies)
Discussion started by: sureshg_sampat
2 Replies

2. Shell Programming and Scripting

sed related query

Hi I have a file which looks like this //string = "abcd"; //info //string = "*pqrs"; //add string = "#123"; //sub //string = "#1234567890" data = check(string) //string = "#1234567890" I want to modify this as string = "#987"; //mult data = check(string) How do i do that? (1 Reply)
Discussion started by: gopsman
1 Replies

3. UNIX for Dummies Questions & Answers

awk related query

hi, I have to extract a column from a file and then updated that column..?? Now i can use wak for extracting it and then how to update it.. $ awk' {print $5}' input_file Can i use sed command here piping it to the output from the awk command.. (2 Replies)
Discussion started by: abhisek.says
2 Replies

4. Shell Programming and Scripting

Print related query

i Am using the below query and printing the $8 and $9 filed.. find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' > result.xls this give me the rsult like below.. 2008/home/ADMIN/om/1.txt 2008/home/ADMIN/om/hi.txt ... (1 Reply)
Discussion started by: sapan123
1 Replies

5. Shell Programming and Scripting

query related to if

wht does below statement mean? if wht does dis -d option do?? TIA. (1 Reply)
Discussion started by: sainathdeg
1 Replies

6. Shell Programming and Scripting

datetimestamp related query!

Hi all, I have put a query in a thread but didn't get any reply. Hoping to get a reply here. I have a file in that one line resembles like below... Forwarded by Deepak on 11/15/2009 10:28 AM EST ofcourse AM can be PM also... so what i need is first i need to get only... (1 Reply)
Discussion started by: smarty86
1 Replies

7. UNIX for Dummies Questions & Answers

A query related to 'ls' command

I am executing the ls command to show the contents of a folder, it shows some number in front of word total as highlighted in blue color below quotes. Can anyone please share that what it is? (2 Replies)
Discussion started by: Zaib
2 Replies

8. UNIX for Dummies Questions & Answers

query related to grep

Hi All, The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt But I am not sure, whether, all result stored in .txt file in case of multi-line result. Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies

9. Shell Programming and Scripting

Small help related to date change

Hi, I am using this code in order to automate a commands in DB: begin for i in 0..23 loop dbms_output.put_line ( 'ALTER TABLE CRESTELMEDIATIONPRD501.TBLMEDIATIONCDR ADD PARTITION'||' ... (3 Replies)
Discussion started by: hitesh1907
3 Replies

10. Emergency UNIX and Linux Support

Interfaces related query

I need to list the interfaces that uses FTP instead of SFTP on my applications that are on AIX servers. How do I get that list of IP addresses that connect to my applications via FTP? (2 Replies)
Discussion started by: ggayathri
2 Replies
CDPR(8) 						      System Manager's Manual							   CDPR(8)

NAME
cdpr - Cisco Discovery Protocol Reporter SYNOPSIS
cdpr [-h] [-t seconds ] [-d device | -r pcap-file ] [-u server-config-file ] [-l location ] [-n hostname ] [-s server ] [-p script-path ] DESCRIPTION
cdpr listens on specified network interfaces for Cisco Discovery Protocol packets. It then decodes those packets and outputs the informa- tion, optionally sending the information to a server for processing. OPTIONS
-d device Specify device to use (eth0, hme0, etc.) -r pcap-file Specify file to read from instead of network device. -h Print the usage. -t seconds Time in seconds to abort waiting for a packet (should be > 60) -v[vv] Set verbose mode. -u server-config-file Send cdpr information to a cdpr server. See /usr/share/doc/cdpr/README.cdprs -l location Location/description of this port; for use with -u or -s and -p. -n hostname Override the hostname reported to the server; for use with -u or -s and -p. -s server Server to send information to, specify port with a: after server/IP. Example: 192.168.1.20:88 (default: 80) requires -p (overridden by -u) -p script-path Path of server script to send data to; requires -s (overridden by -u) AUTHOR
Lance O'Connor <lance at ronnoco dot net> This manual page was written by Matt Zagrabelny <mzagrabe at d dot umn dot edu>, for the Debian system (but may be used by others). User Manuals APRIL 2009 CDPR(8)
All times are GMT -4. The time now is 06:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy