12-06-2011
I did that, but it did not show any security alert. It immediately displayed: Using username "new" and cursor went to next line.. nothing happened. I've been waiting for more than 3 minutes.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am new to UNIX and am interested to practice on a Shell account with some basic Unix installed, does anyone know of a free or cheap shell account? (4 Replies)
Discussion started by: shneurg
4 Replies
2. HP-UX
Hello Everyone,
I am a newbie in unix. I was practicing shell scripts on hp unix machine.
I changed my current login shell (Korn) to Bourne shell giving the following command.
$ chsh username /usr/bash
I am using secure shell client for accessing the hp ux server.
After which i... (4 Replies)
Discussion started by: hardesh
4 Replies
3. UNIX for Dummies Questions & Answers
Hi
Can any one help me with unix box user name and password. I tried several free sites which provide free unix login, but there I can't use ksh.
Thanks:) (5 Replies)
Discussion started by: itsjoy2u
5 Replies
4. Linux
Hi
I tried with bash --login option. but the output is
siva:~$ bash --login
siva:~$
is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su )
Thx in advance
Siva (3 Replies)
Discussion started by: Sivaswami
3 Replies
5. Shell Programming and Scripting
Hello fellow *nix users!
I am a bit confused how could I get an environment of a "fresh/clean" login shell, that is, the environment at that moment when user has started e.g. a new terminal/console or so.
So this is the sequence of actions I should be able to do in a single shell session:
... (6 Replies)
Discussion started by: Miikka
6 Replies
6. Shell Programming and Scripting
Hi All,
I am trying the following to set the environment variable in my scirpt.But it is not setting with the correct value.
Can you guys please help me out to get the correct value.
1. I have environment variable NLS_LANG=American_America.UTF8
2. In my script (ksh) i am trying the following... (1 Reply)
Discussion started by: girish.raos
1 Replies
7. Shell Programming and Scripting
Hello all,
for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell.
So serverA launches the ssh command to serverB which has a local user with my script as a login shell.
Local script works like a charm on his own.
serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies
8. UNIX for Advanced & Expert Users
Hey folks,
When a user is added to a new group, the user has to be log out and log in again to make the new group effective. Is there any system command or technique to refresh user group ID update without re-login?
I am not talking about to use "login" or "su -l" commands which can only make... (2 Replies)
Discussion started by: hce
2 Replies
9. UNIX for Beginners Questions & Answers
Hello,
What will be the effect of environment variable, when mulitple sessions are opened by same login?
Following code snippet is part of a shell script.
Environment : HP-UX B.11.31 U ia64
For Example
EXECUTION_DIR=`pwd`/
EXECUTION_DIR_RT=${EXECUTION_DIR}RT/
export... (4 Replies)
Discussion started by: Siva SQL
4 Replies
10. UNIX for Beginners Questions & Answers
Hello and thanks in advance for any help anyone can offer to straighten me out on this subject
I'm trying to understand non-interactive & non-login shells and having a hard time conceptualize the process a non-interactive & non-login shell goes through to start up. Particularly for background... (7 Replies)
Discussion started by: bodisha
7 Replies
LEARN ABOUT BSD
port_alert
port_alert(3C) Standard C Library Functions port_alert(3C)
NAME
port_alert - set a port in alert mode
SYNOPSIS
#include <port.h>
int port_alert(int port, int flags, int events, void *user);
DESCRIPTION
The port_alert() function transitions a port into or out of alert mode. A port in alert mode immediately awakens all threads blocked in
port_get(3C) or port_getn(3C). These threads return with an alert notification that consists of a single port_event_t structure with the
source PORT_SOURCE_ALERT. Subsequent threads trying to retrieve events from a port that is in alert mode will return immediately with the
alert notification.
A port is transitioned into alert mode by calling the port_alert() function with a non-zero events parameter. The specified events and
user parameters will be made available in the portev_events and the portev_user members of the alert notification, respectively. The flags
argument determines the mode of operation of the alert mode:
o If flags is set to PORT_ALERT_SET, port_alert() sets the port in alert mode independent of the current state of the port. The
portev_events and portev_user members are set or updated accordingly.
o If flags is set to PORT_ALERT_UPDATE and the port is not in alert mode, port_alert() transitions the port into alert mode. The
portev_events and portev_user members are set accordingly.
o If flags is set to PORT_ALERT_UPDATE and the port is already in alert mode, port_alert() returns with an error value of EBUSY.
PORT_ALERT_SET and PORT_ALERT_UPDATE are mutually exclusive.
A port is transitioned out of alert mode by calling the port_alert() function with a zero events parameter.
Events can be queued to a port that is in alert mode, but they will not be retrievable until the port is transitioned out of alert mode.
RETURN VALUES
Upon succesful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The port_alert() function will fail if:
EBADF The port identifier is not valid.
EBADFD The port argument is not an event port file descriptor.
EBUSY The port is already in alert mode.
EINVAL Mutually exclusive flags are set.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |all |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr, SUNWhea |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
port_associate(3C), port_create(3C), port_get(3C), port_send(3C), attributes(5)
SunOS 5.10 1 Oct 2003 port_alert(3C)