Typing a shell and executing

Posted on 2006-05-04
Last Modified: 2010-04-17
I am using Knoppix and I would like to type the shell script.  I created a directory named Cars and then did the command

cat Cars

(shell is typed here)


How do I run this program from this location?
Question by:Higante
    1 Comment
    LVL 19

    Accepted Solution

    You need to have the executable permsion bit set. Try typing
    chmod 755 Cars

    The you should be able to just type Cars or ./Cars to run the script.Note the first line of your script should start with something like  #!/bin/sh
    Otherwise you will need to say
    sh Cars

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Doc'in system (example?) BA 7 64
    c# combobox autocomplete behavior 6 62
    triangle challenge 4 38
    Specific format 21 107
    This is an explanation of a simple data model to help parse a JSON feed
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now