basically the content of /etc/motd is just displayed using something along the line:
IOW, it will be difficult to implement your functionality using /etc/motd... However /etc/profile might be what you are looking for.
Hie guys
im new to Unix. Need some advise or favour perhaps. Iam running Red hat Linux 7.2 and as soon as i install with GUI and so done, i reboot the system. After i reboot it directly went to the GUI login. I able to login and do my stuffs. My question is how to hold the system not to directly... (4 Replies)
I need to replace the current /etc/motd text file with a new motd across 30+ servers.
Which is the best way to do this? Shell script? sed?
Does anyone have an example I can use?
Thanks in advance. Unix people are the best!!! :) (2 Replies)
Hi
I do get the message of the day upon logging in to my machine(Solaris 9). I do NOT have a .hushlogin file in my home directory.
Any ideas
:-) (7 Replies)
Cal
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
cal | awk '{print $7}'
Sat
13
20
27
In the above output i am missing 6 because the first column is empty so it is shfting.
How... (3 Replies)
Hi guys!
I'll make this short... Is there any good way to get the day number that first matches the Monday column from the cal command output with awk (or any other text manipulator commands) ?
I'm sorry if my question wasn't clear at all.
For example...
One cal output would be
$... (6 Replies)
Guys, I have a issue that I am trying to rectify please advise.
lpstat -t shows
scheduler is running
printer lext644 disabled since Mon Dec 02 19:48:18 2013. available.I have restarted the printer service and it shows online but the above says disabled. I have a lot of jobs in the print... (1 Reply)
Dear all,
I have an user passing 2 parameter 31/03/2015 and 02/04/2015 to a ksh script. How to print the start date to end date.
Expected output is :
31/03/2015
01/04/2015
02/04/2015
Note :
1. Im using aix and ksh
2. I have tried to convert the given input into a date, didnt... (0 Replies)
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT HPUX
csa_x_process_updates
csa_x_process_updates(library call) csa_x_process_updates(library call)
NAME
csa_x_process_updates -- invoke a calendar application's calendar event handler
SYNOPSIS
#include <csa/csa.h>
void csa_x_process_updates(
CSA_session_handle cal);
DESCRIPTION
The csa_x_process_updates function checks to see if there have been calendar updates that are of interest to the client. If there have
been one or more calendar updates, and the client previously registered a callback handler using csa_register_callback(3) for updates of
this type, the callback function is called by csa_x_process_updates.
The cal argument specifies a calendar session handle. The callback function will be invoked only if there have been updates to this calen-
dar. If cal is set to NULL, the callback function will be invoked if there have been updates to any logged on calendars.
RETURN VALUE
The csa_x_process_updates function returns no value.
APPLICATION USAGE
The csa_x_process_updates function is useful for applications that maintain a dynamic representation of calendar information, such as a GUI
calendar display. Because the calendar server can simultaneously maintain multiple read/write connections for the same calendar, any data
retrieved by a client should be considered immediately out of date. To create the appearance of a dynamic display of calendar data, such
an application should call csa_x_process_updates as frequently as necessary from within its main event loop.
One way to do this is to have a timeout handler call csa_x_process_updates at regular intervals. The duration of the timer should be
appropriate for the expected user environment. This does not eliminate the risk of the client holding outdated information; it merely
gives the application control over how old the information can get.
SEE ALSO
csa/csa.h - csacsa(5), csa_register_callback(3).
csa_x_process_updates(library call)