Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello, I have never installed anything using Perl before and I wanted to ask how I go about doing this. I think I understand but I dont want to mess anything up. Here is a copy of the install file:
Given a file input and file output, it will rewrite your web page for the upcoming W3 standards.
1) Transfer newhtml.pl into your home directory or the directory where all your files are
2) Chmod this folder to 777
3) Configure the file (read Configuration section)
1) Change the location of perl (first line) to the location of perl on your server
2) Change $file to the file name of the .html (or .txt) of the file you want to rewrite
3) Change the $save to a new name you want the new page to be saved as. Common use would be adding the number 1 after the name you called file.
$file = "index.html";
$save = "index1.html";
How to use:
1) After you make the configurations, run newhtml.pl in your web browser. It will say it's done if everything went okay.
2) Go to the new file it just made, whatever you named $save as, in your browser. If the page loads fine without error, delete the original copy and rename this to the original file name."
My questions are, how do I find the location of my perl server? DO I add this script to my public_html directory so that everyone has access to this script? I am running linux. Thanks
My questions are, how do I find the location of my perl server?
It meant the location of the perl intepreter itself, if it came with your distro then in most cases it's /usr/bin/perl, so in the first line of your script you put #!/usr/bin/perl
If its not there you can use "whereis perl" to find out
DO I add this script to my public_html directory so that everyone has access to this script? I am running linux. Thanks
that actually depends on how Apache is setup, ~/public_html should be ok.