HI,
I have a script where the date and time has to e printed separately as below
date = "Wed Jan 16 2008"
time = "14:17:57 IST"
using date command gives me tho out put
Wed Jan 16 14:17:57 IST 2008
i need only Wed Jan 16 2008 and 14:17:57 IST both stored in two different variables.... (8 Replies)
hi all,
i want to print all the files in a directory.
between a time stamp
like $8>=07:00 and $8<=09:00.
please give me commands not only in awk by any other commands also.
Thanks. (3 Replies)
Hi everyone.
I have root acces to an Ubuntu machine.
This machine have several users so, being root, I can access to their account without knowing their password, simply usingsudo su userBut I need to know the password of a specific user, so in this situation, is there a technique to know what is... (3 Replies)
in a multi user system of 3 users X,Y,Z, if i know that X is presently online, is it possible to determine for how long has he been online? i mean the time duration (3 Replies)
Hi ,
I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( .
how to find cpu's system high time and user time high in a script??
thanks , help would be appreciated !
:) (9 Replies)
Hi,
I am unable to Difference between two time stamps in Linux and display the total elapsed time .
Source date: Aug 15, 2012 02:00:03
Target date: Aug 14, 2012 18:00:03
# based on the forums I am using the below function. Converted dates into this format
Src_dt=20120814180003... (7 Replies)
Hi Experts,
Can you please help me in transposing Datefield from rows to column and calculate the time difference for each of the Jobids:
Input File:
08/23/2012 12:36:09,JOB_5340
08/23/2012 12:36:14,JOB_5340
08/23/2012 12:36:22,JOB_5350
08/23/2012 12:36:26,JOB_5350
Required Output:... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
LEARN ABOUT OPENSOLARIS
upsd.users
UPSD.USERS(5) NUT Manual UPSD.USERS(5)NAME
upsd.users - Administrative user definitions for NUT upsd
DESCRIPTION
Administrative commands such as setting variables and the instant commands are powerful, and access to them needs to be restricted. This
file defines who may access them, and what is available.
Each user gets its own section. The fields in that section set the parameters associated with that user's privileges. The section begins
with the name of the user in brackets, and continues until the next user name in brackets or EOF. These users are independent of
/etc/passwd.
Here are some examples to get you started:
[admin]
password = mypass
actions = set
actions = fsd
instcmds = all
[pfy]
password = duh
instcmds = test.panel.start
instcmds = test.panel.stop
[monmaster]
password = blah
upsmon master
[monslave]
password = abcd
upsmon slave
FIELDS
password
Set the password for this user.
actions
Allow the user to do certain things with upsd. To specify multiple actions, use multiple instances of the actions field. Valid actions
are:
SET
change the value of certain variables in the UPS
FSD
set the forced shutdown flag in the UPS. This is equivalent to an "on battery + low battery" situation for the purposes of
monitoring.
The list of actions is expected to grow in the future.
instcmds
Let a user initiate specific instant commands. Use "ALL" to grant all commands automatically. To specify multiple commands, use
multiple instances of the instcmds field. For the full list of what your UPS supports, use "upscmd -l".
The cmdvartab file supplied with the distribution contains a list of most of the known command names.
upsmon
Add the necessary actions for a upsmon process to work. This is either set to "master" or "slave".
Do not attempt to assign actions to upsmon by hand, as you may miss something important. This method of designating a "upsmon user" was
created so internal capabilities could be changed later on without breaking existing installations.
SEE ALSO upsd(8), upsd.conf(5)INTERNET RESOURCES
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/25/2012 UPSD.USERS(5)