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.
I would appreciate help with the following. It seems that when I run a
command from the command prompt the perl script (let's call this myperl.pl)works okay.
However, I would like to automate the process so can I put the command into a shell script (lets call this myshell.sh). The problem is it seems that the perl script starts to run but then hangs. This script is logging into and then supposed to load a database.
I don't think there is anything wrong with the perl script since I can call it from the command prompt. Also, I have used a shell script to run other perl scripts without problems. So I think I am able to call perl scripts properly.
I think perhaps the problem is that the command line is so long that it wraps to the next line when I am typing (there are a lot of different flags and paramters required to call this perl script). Could this be the cause are there some weird? newline characters being inserted that I can't see or is the cause something totally different?
Automatic word wraping when you type doesn't insert a newline "\n" into the code. You could break up the line to make it easier for you to read......
this is a long \
line of code which \
goes on forever.
Thanks for your reply. If it's not the word wrapping then what could it be?
I have looked carefully at what I entered in the shell script and what I enter in the command prompt and it seems to be exactly the same thing. I can tell that the perl script starts to run since there is an echo or print line that executes properly but that's it. I suspected the word wrap because I thought perhaps since it had already
start running that perhaps some of the parameters were not being 'communicated'.