Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9258427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:24:03+00:00 2026-06-18T12:24:03+00:00

I would like to know what is the error in the below script i

  • 0

I would like to know what is the error in the below script

i get error as : command not foundh: line 1: , : command not foundh: line 2: its continuous

i have tried add ; but now working kindly tell me what to do ??

#!/bin/bash;
clear;
FILEREPO=http://192.168.1.2/cpplugin;

echo "-----------------------------------------------";
echo " Welcome to C-Panel Login Alert Installer";
echo "-----------------------------------------------";
    cd /var/cpanel/;
    mkdir perl5
    cd perl5/
    mkdir lib
    cd lib/
    wget $FILEREPO/LoginAlerthook.zip
    unzip LoginAlerthook.zip
    rm -r LoginAlerthook.zip
    cd /
    /usr/local/cpanel/bin/manage_hooks add module LoginAlert
    chmod 777 LoginAlert.pm
    echo " "
    echo " Login Alert Script Hooked With C Panel Finished"
    echo " "
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:24:04+00:00Added an answer on June 18, 2026 at 12:24 pm

    The fact that you’re getting the funny output is a sure bet that your script has carriage return (CR) characters at the end of the lines, usually a symptom of using Windows editors that assume line endings should be CR/LF rather than just the standard UNIX LF (linefeed). That is causing error output like:

    this_command_ends_hh<CR>: command not found
    

    and because the CR is putting the cursor back at line start, it’s overwriting some of it:

    this_command_ends_hh<CR>
    : command not found
    

    making:

    : command not foundh
    

    Examine your script with od -xcb scriptname to check for CR (displayed as \r) characters, you can also pipe the script output through od -xcb to see the real output. For example is a file I created with hello followed by a carriage return on the one and only line:

    0000000    6568    6c6c    0d6f    000a
              h   e   l   l   o  \r  \n
            150 145 154 154 157 015 012
    0000007
    

    You can see the CR (\r) in there.

    If that is the problem, simply remove the CR characters such as piping it through tr -d '\r'.

    Executing cat hello.txt | tr -d '\r' | od -xcb shows that you can get rid of it:

    0000000    6568    6c6c    0a6f
              h   e   l   l   o  \n
            150 145 154 154 157 012
    0000006
    

    In your case, assuming your script is called freak.bash, you would use:

    tr -d '\r' <freak.bash >newfreak.bash
    

    and newfreak.bash would be the one without the offending characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know how do I add an error check to below
I would like to know why the generic method below does not compile (C#
I would like to know how to show an error message in the Django
I would like to know why the Visual C++ compiler gets me an warning/error
I would like to know if there is anything wrong with the below statement.
I would like to know how do I declare/initialize a dictionary ? The below
If this is not out of place here, would like to know about the
I have a project coded using Spring-hibernate-activeMq What I would like to know is
I have a large function (I know, see below) that breaks proguard during its
I would like to know if its possible to call a non-const member function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.