Please state which Operating System you are using.
In general you get differences if "TZ" is changed in a user's profile so it is different from the one set in /etc/profile .
See.
how do i set the system date and time? i know i have to be root to do it but i'm new to unix--really new--and some of this stuff seems really cryptic. thanks for any help.:confused: (2 Replies)
I am trying to change the time on a Sun Solaris System, but I am having some difficulties. I thought by accessing the clock icon in the CDE would allow me to change the time. Also when I clicked the help icon I still could not fine any information. (1 Reply)
Hi,
I am trying to set environment variable on a remote machine. I want to do it by running a shell script
Here's what I am doin
rsh <remote-hostname> -l root "cd /opt/newclient; . ./setp.sh"
In setp.sh, I have
#############################
cd ../newlib;
export... (1 Reply)
Hello all,
I wish to set the time and date of the system from my application. (I write code in C ).
How can it be done?
I found the function stime() - but it gets time in seconds as a parameter, and I don't know how to convert my time & date to seconds since EPOCH.
What's the best... (0 Replies)
Hi,
We have a ftp server which is running on public ip and out side of firewall.
Users out side of our network and users of our local network both using the same public ip and doing upload and downloading.
Last few days we are facing bandwidth problem as internal network users increased.
... (1 Reply)
I am trying to do a comparison of files based on their last modified date.
I am pulling the first file from a webapp folder using curl.
curl --silent -I http://localhost:8023/conf/log4j2.xml | grep Last
Last-Modified: Tue, 22 Mar 2016 22:02:18 GMT
The second file is on local disk.
stat... (2 Replies)
Hi,
I want to parse below file and Write a function to extract the logs between two given timestamp.
Apache (Unix) Log Samples - MonitorWare
The challenge here is there are three date and time format.
First :- 07/Mar/2004:16:05:49
Second :- Sun Mar 7 16:02:00 2004
Third :- 29-Mar... (6 Replies)
Discussion started by: sahil_shine
6 Replies
LEARN ABOUT DEBIAN
machine-info
MACHINE-INFO(5) machine-info MACHINE-INFO(5)NAME
machine-info - Local machine information file
SYNOPSIS
/etc/machine-info
DESCRIPTION
The /etc/machine-info file contains machine meta data.
The basic file format of machine-info is a newline-separated list of environment-like shell-compatible variable assignments. It is possible
to source the configuration from shell scripts, however, beyond mere variable assignments no shell features are supported, allowing
applications to read the file without implementing a shell compatible execution engine.
/etc/machine-info contains meta data about the machine that is set by the user or administrator.
Depending on the operating system other configuration files might be checked for machine information as well, however only as fallback.
OPTIONS
The following machine meta data parameters may be set using /etc/machine-info:
PRETTY_HOSTNAME=
A pretty human-readable UTF8 machine identifier string. This should contain a name like Lennart's Laptop which is useful to present to
the user and does not suffer by the syntax limitations of internet domain names. If possible the internet host name as configured in
/etc/hostname should be kept similar to this one. Example: if this value is Lennart's Computer an Internet host name of
lennarts-computer might be a good choice. If this parameter is not set an application should fall back to the Internet host name for
presentation purposes.
ICON_NAME=
An icon identifying this machine according to the XDG Icon Naming Specification[1]. If this parameter is not set an application should
fall back to computer or a similar icon name.
EXAMPLE
PRETTY_HOSTNAME="Lennart's Computer"
ICON_NAME=computer-laptop
SEE ALSO systemd(1), os-release(5), hostname(5), machine-id(5)AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
NOTES
1. XDG Icon Naming Specification
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
systemd 10/07/2013 MACHINE-INFO(5)