10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i am new to shell scripts
i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies
2. Red Hat
Hi All,
I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
3. Shell Programming and Scripting
Hello there,
I have been trying to get my awk script done and I am hanging in the last part for long hours. Just wish if someone could help me.
The actual op is:-
22 0 0 0
0 0 0 0
0 0 18 0
0 0 0 30
0 0 0 0
0 0 0 0
0 0 0 0... (4 Replies)
Discussion started by: mr.amitkc
4 Replies
4. Solaris
Hi All,
How to restrict the NIS users not to change their passwords in for NIS users??
and my NIS user is unable to login to at client location what could be the problem for this ?
Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies
5. Shell Programming and Scripting
I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time.
Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies
6. Shell Programming and Scripting
Hi friends,
i m in big trouble....
i have one script which connects two server ...like below..
script1.sh
-------------------------------------
bash test.sh &
eval x=$@
export x=`echo $x`
#echo $x
#
ssh user@8.2.5.6 bash /mbbv/location/script.sh $x|sed '/Binary file/d'... (1 Reply)
Discussion started by: Shahul
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
First, I am running a scipt.While the script is running I realize that I dont want the script to be run so I am killing the script externally.Before the process gets terminated or killed it should delete all the temporary files created by the script.How to do this?Can anyone help me?
... (3 Replies)
Discussion started by: arthi
3 Replies
8. Shell Programming and Scripting
I wrote a script to kill users idle more than 1/2 hour, ignoring those in an exception list. Here is the script as it is now:
#! /usr/bin/awk -f
BEGIN {
system("who -u | sort +5 > /tmp/loginfile");
system("echo User Sessions Killed > /tmp/killedlogins");
... (2 Replies)
Discussion started by: PapaBear
2 Replies
9. UNIX for Dummies Questions & Answers
I can kill running processes on my linux red hat system using ctrl-c but cannot do it from command line of another terminal using kill -2 pid. Although I can kill them from command line using kill -9 pid and other signals. I would like to do it using the kill -2 pid.
Thanks for your suggestions (6 Replies)
Discussion started by: bbhayana
6 Replies
10. Shell Programming and Scripting
I need a script that will look for idle users and kill there proc. (7 Replies)
Discussion started by: jdel80
7 Replies
CatalystX::SimpleLogin::TraitFor::Controller::Login::LogUser3Contributed Perl DocuCatalystX::SimpleLogin::TraitFor::Controller::Login::Logout(3pm)
NAME
CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout - log users out
DESCRIPTION
Simple controller role for logging users out. Provides a "logout" action (at /logout by default) which redirects the user to the homepage
by default.
ACTIONS
logout : Chained('/') PathPart('logout') Args(0)
Calls "$c->logout", then redirects to the logout uri retuned by "$self->redirect_after_logout_uri".
METHODS
redirect_after_logout_uri
Returns the uri to redirect to after logout.
Defaults to "$c->uri_for('/');" you can override this by setting the "<redirect_after_logout_uri"> key in config to a path to be passed to
"$c->uri_for".
Alternatively, you can write your own redirect_after_logout_uri in your Login controller if you are extending CatalystX::SimpleLogin and it
will override the method from this role.
do_clear_session_on_logout
Deletes the session after a logout.
To enable this use the following in your config:
__PACKAGE__->config('Controller::Login' => { clear_session_on_logout => 1 });
SEE ALSO
CatalystX::SimpleLogin::Controller::Login
AUTHORS
See CatalystX::SimpleLogin for authors.
LICENSE
See CatalystX::SimpleLogin for license.
perl v5.14.2 2012-05-05 CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout(3pm)