Find the answer to your Linux question:
Results 1 to 8 of 8
i am a newbie but again not really. I use ubuntu as my developing host machine for a beagle board running Linux angstrom (embedded os). I have been trying to ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    3

    Scripting language

    i am a newbie but again not really. I use ubuntu as my developing host machine for a beagle board running Linux angstrom (embedded os). I have been trying to get a good grip on script files and Make files, but i do not know what language they are written in. I know it could be an open ended question that i am asking. But what is the conventional scripting language that default script files use on your everyday ubuntu or angstrom distributions? I know they are not perl or python or ruby.

    BTW, i am using the BASH shell.

    Thanks all
    Last edited by kauty; 03-04-2010 at 01:24 PM. Reason: typo and clarifications

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Its probably the bash scripting language...is the first line - #! /bin/sh
    Make mine Arch Linux

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    3
    some start with #!bin/bash

    others don't. The other just starts with .SUFFIX: and some start with include ../../Rules.make or include $(TOPDIR)/config.mk

    It is the little things that get me, such as the '$', ':=' and 'sinclude $(obj).depend'

    I know it is pretty simple once i see a tutorial or a guide for this language or method of programming, because i can understand the over all task, but it is the details that i loose myself and focus on. That would be why i want to know what language it is. Do you understand my frustration.

    I will look up the 'bash scripting language' for now and check back if you or someone else can guide me to the guide. I know bash scripting is mostly a bunch of shell commands which i can understand perfectly like batch files in DOS, but i always felt there is a bigger piece in the puzzle that is missing.
    Thanks

  4. #4
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    It really depends on what your looking at..Linux has many...many different file formats, some are script files, some startup files, some configuration files, log files, Makefiles...The list is long.

    I know bash scripting is mostly a bunch of shell commands which i can understand perfectly like batch files in DOS
    Bash scripting is a little more than a DOS batch file..
    Make mine Arch Linux

  5. #5
    Linux User
    Join Date
    Jan 2006
    Posts
    414
    The shell scripts will be... shell scripts, specifically bash scripts. Here's a tutorial that should get you started:
    Bash scripting Tutorial

    Makefiles use make syntax, and are to simplify compilation of a program from source. Here's a Tutorial that should get you started with make:
    Makefile Tutorial

  6. #6
    Just Joined!
    Join Date
    Mar 2010
    Posts
    3
    Thanks darkrose..I am aware of what script files and bash script file now.
    It was just the syntax that i was not sure where to take a shot at understanding every character, symbol and number meant.

    I will read over your second link as that is what i need to educate my self on more than the bash script.

    "Makefiles use make syntax, and are to simplify compilation of a program from source."

    It is that make syntax that gets me. Is that a language of its own? or is it just a few bits a pieces implementations borrowed from C, bash commands etc.

  7. #7
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Different files use different syntaxes. There are several ways to know what syntax a file uses: a file extension, a shebang line (the first line of a file, starting with "#!"), or the name of the file.

    For instance, a Perl file might end with ".pl" (common on a Windows system, for instance) or ".pm" (common everywhere), or might begin with the line "#!/usr/bin/perl".

    In the case of a Makefile, it is generally called Makefile, so we can identify it. Makefiles use make syntax, which is its own language.

    The link that darkrose provided should give you the basics of Makefiles, and you can read the actual make manual for more information:
    GNU `make'

    Note that most distributed Makefiles these days are created with automake, which makes everything a lot simpler:
    Automake - GNU Project - Free Software Foundation (FSF)
    DISTRO=Arch
    Registered Linux User #388732

  8. #8
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    A brief article covering scripting languages can be found at Scripting language - Wikipedia, the free encyclopedia

    The general ideas behind make can be read in make (software) - Wikipedia, the free encyclopedia) which discusses derivation, dependencies, and how the rules in Makefiles are similar to declarative languages as opposed to imperative languages.

    Best wishes ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...