01-13-2011
sorry, I meant to specifiy those details. it's a Sun Netra 240 running Solaris 9. I don't think we have nVidia utils.....However, in the mean time, I will check. Thanks for the response!
7 More Discussions You Might Find Interesting
1. Solaris
Hi,
I need to get the console window size for an application, for which I used ioctl() by passing the TIOCGWINSZ parameter. The ioctl() function does not fail (returns non zero), but it could not get the window size (gets 0x0). When I tried to verify the window size by the stty -a command, the... (2 Replies)
Discussion started by: diganta
2 Replies
2. UNIX Desktop Questions & Answers
Dear Friends
I'm using Hp-unix release b.11.11 and i'm facing a problem to login through telnet session. i can login only by user root but other users can not login.
but if i use x window application like (reflection X) all users can login with no problem.
please kindly advice me on how to... (0 Replies)
Discussion started by: hai_jab
0 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
My Problem is -> How can we get UNIX id from open mail authentication (Windows ID) in UNIX.
In following command we are using domain name, which may change in your reference.
As, if we use following command.
ypcat passwd | grep rohitp | cut -d: -f5 | cut -d, -f1
=> we get... (0 Replies)
Discussion started by: pandey.rohit
0 Replies
4. Solaris
Hey folks, I wish every one is just great. I got to do this:
I'm trying to configure my Solaris 10 clients to Automatically Show the login windows of the Main Server whenever the Client restarts or a user logs out.
By other means, the Client user don't have to Go to Options->Remote-Login->... (5 Replies)
Discussion started by: ua-agent
5 Replies
5. Shell Programming and Scripting
hi guys,
i want command or script to display the content of file from 2nd position to last but one position of a file
abcdefghdasdasdsd
123,345,678,345,323
434,656,656,656,656
678,878,878,989,545
4565656667,65656
i want to display the same above file without first and... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
6. Shell Programming and Scripting
Hi,
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies
7. Shell Programming and Scripting
I have a slight problem controlling the cursor position in a Bash terminal window. I have a function ask a question and then wait for an answer which is either 'y' or 'n' or a carriage return. Whenever the user enters anything else it just erases the answer and waits for the next one. However, the... (23 Replies)
Discussion started by: Ralph
23 Replies
LEARN ABOUT DEBIAN
catalyst::actionrole::needslogin
Catalyst::ActionRole::NeedsLogin(3pm) User Contributed Perl Documentation Catalyst::ActionRole::NeedsLogin(3pm)
NAME
Catalyst::ActionRole::NeedsLogin - checks if a user is logged in and if not redirects him to login page
SYNOPSIS
package MyApp::Controller::NeedsAuth;
use Moose;
use namespace::autoclean;
# One needs to inherit from Catalyst::Controller in order
# to get the Does('NeedsLogin') functionality.
BEGIN { extends 'Catalyst::Controller'; }
sub inbox : Path Does('NeedsLogin') {
# Redirects to /login if not logged in
my ($self, $c) = @_;
$c->stash->{template} = "inbox.tt2";
return;
}
sub inbox : Path Does('NeedsLogin') :LoginRedirectMessage('Your custom Message') {
# Redirects to /login if not logged in-
}
# Turn on in config
MyApp->config('Contoller::Login' => { traits => ['WithRedirect'] });
DESCRIPTION
Provides a ActionRole for forcing the user to login.
WRAPPED METHODS
execute
If there is no logged-in user, call the login_redirect() method in the 'Login' controller with the Catalyst context object, $c, and the
message specified by the ":LoginRedirectMessage('Message here')" method attribute (see the synopsis).
If there is a user logged-in (i.e: "$c->user" is true), execute the body of the action as it is.
SEE ALSO
CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect
CatalystX::SimpleLogin::Controller::Login
CatalystX::SimpleLogin::Form::Login
AUTHORS
See CatalystX::SimpleLogin for authors.
LICENSE
See CatalystX::SimpleLogin for license.
perl v5.14.2 2012-07-15 Catalyst::ActionRole::NeedsLogin(3pm)