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 have a Red hat server where I'm trying to execute diferents shell scripts, but I am not able to do this.
A simple shell script that I try to execute is this:
ls -al /home/jboss/jboss-4.0.2
ls -al /home/jboss/jboss-4.0.2/server/nps-tempo/log/*
(the folder "log" exists)
When I execute: ...]$ start_NPS-tempo_temp.sh
the result is: : bad interpreter: The file or the directory does not exist
When I execute: ...]$ ksh start_NPS-tempo_temp.sh
the result is: /home/jboss/jboss-4.0.2
: The file or the directory does not exist
: The file or the directory does not exist-tempo/log/*
: not foundempo_temp.sh:
rm: it is not possible to be erased «/home/jboss/jboss-4.0.2/server/nps-tempo/log/*\r»: The file or the directory does not exist
I have tried to put #!/bin/sh where I have #!/bin/ksh
It sounds like you have created the script on a Windows PC and then copied to server so file is in the wrong format. Open the script in vi and then press Esc, press :, then enter set ff=unix and then press : again and enter wq. This will convert the file to unix format and remove any unwanted control characters from the end of line.