Sponsored Content
Full Discussion: change login
Top Forums Shell Programming and Scripting change login Post 302431561 by pludi on Tuesday 22nd of June 2010 06:47:40 AM
Old 06-22-2010
First, you again win an Useless Use Of Cat Award, because that could have been written just as easy as
Code:
antiword -t $arxivo > $( basename ${arxivo} .doc).txt

3 lines less, and no temporary file with a race condition to worry about.

Second, CGI scripts usually run in a very minimalistic environment. Try referencing the antiword command by it's full path, make sure the directory you're in is writeable by www-data, and that the original file can be read by www-data.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

change login dir

Ok when I log in to my terminal I land in a dir. How can I change the dir that I start from when I login? Thanks for the help, sure it is a no brainer for you guys cd (5 Replies)
Discussion started by: lorcet222
5 Replies

2. UNIX for Dummies Questions & Answers

Password change at login????

I want Red Hat Linux 7.2 prompt for new password at next login time. How can I do this????? passwd -f don't work for linux...... (4 Replies)
Discussion started by: rrivas
4 Replies

3. UNIX for Dummies Questions & Answers

Login screen change

If I want to change a Solaris 8 login screen to add a Company name what do I need to do ? Current login prompt SunOS 5.8 login: ... (2 Replies)
Discussion started by: miredale
2 Replies

4. AIX

Change users login name

Hi, I need to change some users login name in AIX. With solaris i donīt had problems, i have used "usermod". But in AIX the usermod command donīt have the same behavior. Can someone give me a tip on how to perform these changes? Thanks in advance. (9 Replies)
Discussion started by: spacewalker
9 Replies

5. UNIX for Dummies Questions & Answers

I want to change login failure message, "login incorrect"

I want to change login failure message, "login incorrect" deny user login for user id tom sudo passwd -l tom type username and type password on login prompt and then it will display login failure message "login incorrect" console ############ login: tom password: login incorrect... (2 Replies)
Discussion started by: lifegeek
2 Replies

6. Post Here to Contact Site Administrators and Moderators

How can i change my login ID?

Hello, How can i change my login ID? My login ID is younus_syed. Thanks & Regards Younus Syed (10 Replies)
Discussion started by: younus_syed
10 Replies

7. Post Here to Contact Site Administrators and Moderators

change of login id..

Hi, Can I change my login id having my current account alive? I found one thread related to this which shows that it is possible. I also agree that this is not done in normal terms. Still, can I request for it? I really dont want to lose my current account and my post count. would... (1 Reply)
Discussion started by: clx
1 Replies

8. Shell Programming and Scripting

Change Last Login within /etc/shadow

Was wondering if any had a script to change the last login field within the /etc/shadow? Need to it run against machines to "reset" the last login so local accounts will not expire if account isn't access within the mandatory setting we are force to implement. Thanks!!!! (5 Replies)
Discussion started by: Luv_STL
5 Replies

9. Solaris

Change Password on First Login

Hi there, Is there a way to ask the solaris user to change passwordo n the first login. I am looking at how to do this for every single new user. (5 Replies)
Discussion started by: alvinoo
5 Replies

10. UNIX for Advanced & Expert Users

Change login process

Hello everybody ! At the beginning - I hope everything will be understandable as I know that my english skills are not as good as I would like. I use Manjaro Linux for one year, previously used Ubuntu for 6 years. Today I got an idea to create small USB electronic device but I don't know how... (6 Replies)
Discussion started by: halfboy
6 Replies
CGI::Application::Plugin::RequireSSL(3pm)		User Contributed Perl Documentation		 CGI::Application::Plugin::RequireSSL(3pm)

NAME
CGI::Application::Plugin::RequireSSL - Force SSL in specified pages or modules VERSION
Version 0.04 SYNOPSIS
use CGI::Application::Plugin::RequireSSL; sub login_form :RequireSSL { my $self = shift; # etc } DESCRIPTION
CGI::Application::Plugin::RequireSSL allows individual run modes or whole modules to be protected by SSL. If a standard HTTP request is received, you can specify whether an error is raised or if the request should be redirected to the HTTPS equivalent URL. EXPORT
Exported methods: config_requiressl, mode_redirect USAGE
run mode-level protection run mode protection is specified by the RequireSSL attribute after the method name: sub process_login :RequireSSL { my $self = shift; } Module-level protection You can protect a complete module by setting the 'require_ssl' parameter in your instance script: use MyApp; my $webapp = MyApp->new( PARAMS => {require_ssl => 1} ); $webapp->run(); Redirecting to a protected URL. By default, an error is raised if a request is made to a protected run mode or module using HTTP. However, you can specify that the request is redirected to the HTTPS url by setting the rewrite_to_ssl parameter as long as the requested method is not POST: my $webapp = MyApp->new( PARAMS => {rewrite_to_ssl => 1} ); Turning off checks. If you need to turn off checks, simply set the ignore_check parameter when configuring the plugin (see "config_requiressl" below). Reverting to HTTP Once a successful request is made to a protected run mode or module, subsequent requests to a non-protected run mode or module will revert to using HTTP. To prevent this from happening, set the parameter keep_in_ssl in the configuration (see "config_requiressl" below) METHODS
config_requiressl Optionally configure the plugin in your cgiapp_init method $self->config_requiressl( keep_in_ssl => 0, ignore_check => 0, ) Valid parameters are: o keep_in_ssl - if set, all subsequent requests following one to a protected run mode or module will be via HTTPS. o ignore_check - ignore SSL schecking. This is useful if your application is deployed in an environment that doesn't support SSL. mode_redirect This is a run mode that will be automatically called if the request should be redirected to the equivalent HTTP or HTTPS URL. You should not call it directly. AUTHOR
Dan Horne, "<dhorne at cpan.org>" BUGS
Please report any bugs or feature requests to "bug-cgi-application-plugin-requiressl at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-RequireSSL <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI- Application-Plugin-RequireSSL>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. CAVEAT
This module been tested under the FastCGI persistent environment, but not under mod_perl. The author would apprecaute feedback from anyone who is able to test with that environment. SUPPORT
You can find documentation for this module with the perldoc command. perldoc CGI::Application::Plugin::RequireSSL You can also look for information at: o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/CGI-Application-Plugin-RequireSSL <http://annocpan.org/dist/CGI-Application-Plugin-RequireSSL> o CPAN Ratings http://cpanratings.perl.org/d/CGI-Application-Plugin-RequireSSL <http://cpanratings.perl.org/d/CGI-Application-Plugin-RequireSSL> o RT: CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Application-Plugin-RequireSSL <http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Application- Plugin-RequireSSL> o Search CPAN http://search.cpan.org/dist/CGI-Application-Plugin-RequireSSL <http://search.cpan.org/dist/CGI-Application-Plugin-RequireSSL> ACKNOWLEDGEMENTS
o Users of the CGI::Application wiki (http://www.cgi-app.org) who requested this module. o Andy Grundman - I stole the idea of the keep_in_ssl parameter from his Catalyst::Plugin::RequireSSL module COPYRIGHT &; LICENSE Copyright 2007 Dan Horne, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2011-11-07 CGI::Application::Plugin::RequireSSL(3pm)
All times are GMT -4. The time now is 06:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy