Sponsored Content
Top Forums UNIX for Dummies Questions & Answers ksh to check second time difference between two servers Post 302814155 by elixir_sinari on Tuesday 28th of May 2013 09:36:05 PM
Old 05-28-2013
If your machines have time server enabled, you could contact the UDP time port of those machines and get the 32-bit time in seconds since 1900.
But then it's UDP...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ksh to run servers

I want to write a Kshell program which will start the servers(Oracle,DataIntegrator). Can anybody help me with this? I would appreciate your help. Thanks in advance (0 Replies)
Discussion started by: pari111222
0 Replies

2. Shell Programming and Scripting

ksh: difference between $* and $@

Please ignore. I found the answer at: https://www.unix.com/shell-programming-scripting/24557-difference-between.html (1 Reply)
Discussion started by: JamesByars
1 Replies

3. UNIX for Dummies Questions & Answers

3 servers 1 .ksh script

system = AIX How can I explain this..... Keep in mind I do not want to login to the boxes, persay, and that I am fairly new to scripting and unix. I want to use SSH. I have a script on server1, this is where I want it to run from. I have server2 and server3, where I want the script to... (2 Replies)
Discussion started by: cml2008
2 Replies

4. Shell Programming and Scripting

Difference between development and Production unix servers for a application??

Hi all I am running a major script of my application in development for implementing code changes for process improvement in time. The script runs in production once in a month . It takes 8 hours 30 mins in Production server . what surprice me is , when I run the same script in development server... (9 Replies)
Discussion started by: sakthifire
9 Replies

5. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies

6. Shell Programming and Scripting

ksh connection to other servers

Hello, I am looking for a way for a server to launch a connection command to one of the other servers where the connection command has already embedded in it a server name, user name and a password. (2 Replies)
Discussion started by: LiorAmitai
2 Replies

7. UNIX for Dummies Questions & Answers

Difference Between executing llike ./myscript.ksh and . ./myscript.ksh

Hi , What is the diffence between executing the script like ./myscript.ksh . ./myscript.ksh I have found 2 difference but could not find the reason 1. If i export a variable in myscript.ksh and execute it like . ./myscript.ksh the i can access the other scripts that are present in... (5 Replies)
Discussion started by: max_hammer
5 Replies

8. Shell Programming and Scripting

Same KSH behaving differently on diff servers

HI all I have written a ksh to execute PL/sql procedure and generate the log file. The script is working fine to the extent of calling the taking input, executing PL/SQL procedure. On one server the log file is getting generated properly. i,e it shows the DBMS output . The log file size was... (9 Replies)
Discussion started by: ramakrishnakini
9 Replies

9. Shell Programming and Scripting

Time difference between two time stamps

Hi Friends, I have 2 varaibles which contain START=`date '+ %m/%d/%y %H:%M:%S'` END=`date '+ %m/%d/%y %H:%M:%S'` i want the time difference between the two variables in Seconds. Plz help. (2 Replies)
Discussion started by: i150371485
2 Replies

10. Shell Programming and Scripting

Check/Parse log file's lines using time difference/timestamp

I was looking at this script which outputs the two lines which differs less than one sec. #!/usr/bin/perl -w use strict; use warnings; use Time::Local; use constant SEC_MILIC => 1000; my $file='infile'; ## Open for reading argument file. open my $fh, "<", $file or die "Cannot... (1 Reply)
Discussion started by: cele_82
1 Replies
burgerspace-server(6)													     burgerspace-server(6)

NAME
burgerspace-server - UDP server for the networked version of BurgerSpace SYNOPSIS
burgerspace-server DESCRIPTION
burgerspace-server is a server that accepts connections from BurgerSpace clients to allow two players to compete with each other. One player controls the chef and the other controls the egg. Other clients can connect as spectators. burgerspace-server should be started in a terminal. To terminate it, give the Ctrl-C sequence or use the kill(1) command with the server's process ID as the argument. The connections use the UDP protocol. The --port option can be used to specify a non-default listening port (see below). After the server has started, the user who wants to control the chef must start the client with this command: burgerspace --server=the.server.hostname.com --chef Use the appropriate hostname or IP address as the argument for --server. The user who wants to control the egg must give the --enemy option instead of --chef. The --port option can be added to the burgerspace command-line to specify the server port, if the server was started with a non-default UDP listening port. OPTIONS
--help display a help page and exit --version display version information and exit --initial-level=N start game at level N. Default is 1. N must be at least 1. --port=PORT UDP port number on which the server must listen for incoming clients. The default is 49152. LICENSE
This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. AUTHORS
Pierre Sarrazin (code) Luce St-Amand (most images) FILES
This program uses the flatzebra library, by the same author. This library is itself based on the SDL graphics library (see http://www.lib- sdl.org). See the BurgerSpace Home Page: http://sarrazip.com/dev/burgerspace.html BUGS
Performance has not been tested thoroughly. Users who want to play the stable stand-alone game should use version 1.8.3. SEE ALSO
burgerspace(6) May 16th, 2010 burgerspace-server(6)
All times are GMT -4. The time now is 11:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy