SlideShare uma empresa Scribd logo
1 de 9
BY
SANA MATEEN
6/13/2016 1Introduction to scripts and scripting
INTRODUCTION TO SCRIPTS AND SCRIPTING
 Script is a program written for special runtime environment that automate the
execution of tasks.
 Scripting is the action of writing scripts using scripting language.
 Scripting Language are used to extend the functionality of software . For
example enhancing web pages by providing dynamic content.
 They are designed to automate frequently used task that usually involve calling
or passing commands to external program.
Examples:
1. PERL- PRACTICAL EXTRACTION AND REPORT LANGUAGE
2. PHP-Hypertext Preprocessor(Personal Home Page)
3. TCL-Tool Command Language and PYTHON
TCL
6/13/2016 2Introduction to scripts and scripting
SCRIPTING VS. PROGRAMMING: IS THERE A DIFFERENCE?
Scripting Programming
 Scripts are interpreted . It means
they are processed from scratch
every time you run them.
 Programs are executed.
Problems addressed by Scripting language
 Building applications from off-the-shelf components.
 Example:
Use of Visual Basic to develop GUI using prebuilt Visual Controls.
 Controlling applications that have a programmable interface(protocols
to be followed while building a software).
 Speed of development is more important than runtime efficiency.
6/13/2016 3Introduction to scripts and scripting
ORIGIN OF SCRIPTING
 The UNIX O.S developers coined the term shellscript for sequence of commands
that were read from a file and followed in sequence.
 Script is a file that is intended to be executed directly rather than being compiled.
 Examples of scripts with respect to unix system are:
 AWK: This utility reads the standard input line by line and takes an action on part of
entire line.
 These actions are specified in awk script that consist of list of instructions.
 Perl: is a scripting language developed by Larry Wall, especially designed for text
processing.
 Though Perl is not officially an acronym but many times it is used as it stands
for Practical Extraction and Report Language.
 It runs on a variety of platforms, such as Windows, Mac OS, and the various versions
of UNIX.
6/13/2016 4Introduction to scripts and scripting
ORIGIN OF SCRIPTING
 In DOS(Disk Operating System), use of dial up connection to remote system
require scripts that automate the sequence of operation required to establish a
connection to remote system.
 Use rasphone( Remote Access Phonebook) command.
 Another occurrence of script was in Apple Macintosh HyperCard Application,
which is one of the Hypertext system.
6/13/2016 5Introduction to scripts and scripting
SCRIPTING TODAY
 Scripting allows application to be developed much faster than traditional
methods allow.
 We can use it to manipulate,customize,automate the facilities of existing
system.
 Eg: Use of client side scripting and Dynamic HTML to create interactive and
feature rich enhanced web pages.
 Using Scripting Language with its rich functionality .These are used by UNIX
admin for System maintenance work, like managing user permissions.
 Windows system admin adopt Perl for their work.
 Apache web server has an embedded Perl interpreter for CGI scripts
6/13/2016 6Introduction to scripts and scripting
CGI SCRIPT ISAPI TECHNOLOGY
 CGI stands for Common Gateway
Interface.
 It defines a standard way in which
information may be passed to and
from the browser and server.
 CGI scripts can be written using
PERL.
 ISAPI stands for Internet Server
Application Program Interface
technology . It is set of window program
calls that let you write a web server
application that will run faster than CGI.
 We can create Dynamic Link Library
application file using this technology.
 We can write an ISAPI script in any
language that will create an executable
object on your system. For example, C++,
Visual Basic, or Perl script on Windows.
6/13/2016 7Introduction to scripts and scripting
CHARACTERISTICS OF SCRIPTING LANGUAGE
 Integrated Compile and Run
Scripting Language behave as if they were interpreted. They are often an
interactive, experimental activity that doesn’t fit well with the “edit-compile-
link-run” cycle of conventional programming.
A few Scripting Languages like Unix Shell and TCL(Tool Command
Language) version 7 are indeed implemented as strict interpreters.
However most of the languages in current use opt for hybrid technique
which involve compiling to an intermediate form which is then
interpreted.
 Low Overhead and ease of use
Based on the usage variables can be declared and initialized . Later
focus was on explicit variable declaration, which requires that you declare every
variable before you use it.
Eg: Dim sum As Integer (or) sum=10;
 Enhanced Functionality
Most of the languages provide powerful string manipulation based on
the use of regular expression(A regular expression is a string of characters that
define the pattern or patterns you are viewing. ). Some languages support easy
access to API or Object model exported by application.
6/13/2016 8Introduction to scripts and scripting
CHARACTERISTICS OF SCRIPTING LANGUAGE
 Efficiency is not an issue
Ease of use is achieved at the expense of efficiency
eg: interpretation rather than compiling
Focus is not on high performance but on the speed of development together
with ability to make changes to meet new requirement.
6/13/2016 9Introduction to scripts and scripting

Mais conteúdo relacionado

Mais procurados

Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programmingRokonuzzaman Rony
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Ahsanul Karim
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageDr.YNM
 
Python Programming language
Python Programming languagePython Programming language
Python Programming languageHadeelAlbedah
 
Difference between vbscript and javascript
Difference between vbscript and javascriptDifference between vbscript and javascript
Difference between vbscript and javascriptUmar Ali
 
Regular expressions in Python
Regular expressions in PythonRegular expressions in Python
Regular expressions in PythonSujith Kumar
 
Fundamentals of Programming Constructs.pptx
Fundamentals of  Programming Constructs.pptxFundamentals of  Programming Constructs.pptx
Fundamentals of Programming Constructs.pptxvijayapraba1
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 

Mais procurados (20)

Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
 
1.Role lexical Analyzer
1.Role lexical Analyzer1.Role lexical Analyzer
1.Role lexical Analyzer
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Javascript
JavascriptJavascript
Javascript
 
Python Programming language
Python Programming languagePython Programming language
Python Programming language
 
Difference between vbscript and javascript
Difference between vbscript and javascriptDifference between vbscript and javascript
Difference between vbscript and javascript
 
Regular expressions in Python
Regular expressions in PythonRegular expressions in Python
Regular expressions in Python
 
JAVA PROGRAMMING
JAVA PROGRAMMING JAVA PROGRAMMING
JAVA PROGRAMMING
 
Fundamentals of Programming Constructs.pptx
Fundamentals of  Programming Constructs.pptxFundamentals of  Programming Constructs.pptx
Fundamentals of Programming Constructs.pptx
 
Common Gateway Interface
Common Gateway InterfaceCommon Gateway Interface
Common Gateway Interface
 
Scripting Languages
Scripting LanguagesScripting Languages
Scripting Languages
 
Python basic syntax
Python basic syntaxPython basic syntax
Python basic syntax
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
Type Checking(Compiler Design) #ShareThisIfYouLike
Type Checking(Compiler Design) #ShareThisIfYouLikeType Checking(Compiler Design) #ShareThisIfYouLike
Type Checking(Compiler Design) #ShareThisIfYouLike
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Python Presentation
Python PresentationPython Presentation
Python Presentation
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
 

Semelhante a Unit 1-introduction to scripts

Introduction to scripts
Introduction to scriptsIntroduction to scripts
Introduction to scriptssana mateen
 
Class 17-18 Introduction to Perl.pdf bbbbbb
Class 17-18 Introduction to Perl.pdf bbbbbbClass 17-18 Introduction to Perl.pdf bbbbbb
Class 17-18 Introduction to Perl.pdf bbbbbb21h51a0581
 
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTHBhavsingh Maloth
 
Top Programming Languages of 2020
Top Programming Languages of 2020Top Programming Languages of 2020
Top Programming Languages of 2020Ikbal Ahmed
 
Is Python a Programming language or Scripting Language.pdf
Is Python a Programming language or Scripting Language.pdfIs Python a Programming language or Scripting Language.pdf
Is Python a Programming language or Scripting Language.pdfKajal Digital
 
Is Python a Programming language or Scripting Language_.pdf
Is Python a Programming language or Scripting Language_.pdfIs Python a Programming language or Scripting Language_.pdf
Is Python a Programming language or Scripting Language_.pdfKajal Digital
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialQA TrainingHub
 
Scripting languages presentation_michel_patrickfrancis
Scripting languages presentation_michel_patrickfrancisScripting languages presentation_michel_patrickfrancis
Scripting languages presentation_michel_patrickfrancisoloofrank
 
Uses for scripting languages,web scripting in perl
Uses for scripting languages,web scripting in perlUses for scripting languages,web scripting in perl
Uses for scripting languages,web scripting in perlsana mateen
 
Entrepreneur’s guide to programming
Entrepreneur’s guide to programmingEntrepreneur’s guide to programming
Entrepreneur’s guide to programmingChris Callahan
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programminghamza239523
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdfKINGZzofYouTube
 
Top Automation Programming Languages of 2023.pdf
Top Automation Programming Languages of 2023.pdfTop Automation Programming Languages of 2023.pdf
Top Automation Programming Languages of 2023.pdfpCloudy
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution pptKeerty Smile
 
SERVER SIDE SCRIPTING
SERVER SIDE SCRIPTINGSERVER SIDE SCRIPTING
SERVER SIDE SCRIPTINGProf Ansari
 

Semelhante a Unit 1-introduction to scripts (20)

Introduction to scripts
Introduction to scriptsIntroduction to scripts
Introduction to scripts
 
Class 17-18 Introduction to Perl.pdf bbbbbb
Class 17-18 Introduction to Perl.pdf bbbbbbClass 17-18 Introduction to Perl.pdf bbbbbb
Class 17-18 Introduction to Perl.pdf bbbbbb
 
Unit 1
Unit 1Unit 1
Unit 1
 
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
 
Top Programming Languages of 2020
Top Programming Languages of 2020Top Programming Languages of 2020
Top Programming Languages of 2020
 
Is Python a Programming language or Scripting Language.pdf
Is Python a Programming language or Scripting Language.pdfIs Python a Programming language or Scripting Language.pdf
Is Python a Programming language or Scripting Language.pdf
 
Is Python a Programming language or Scripting Language_.pdf
Is Python a Programming language or Scripting Language_.pdfIs Python a Programming language or Scripting Language_.pdf
Is Python a Programming language or Scripting Language_.pdf
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
PHP
PHPPHP
PHP
 
Programming language
Programming languageProgramming language
Programming language
 
Scripting languages presentation_michel_patrickfrancis
Scripting languages presentation_michel_patrickfrancisScripting languages presentation_michel_patrickfrancis
Scripting languages presentation_michel_patrickfrancis
 
Uses for scripting languages,web scripting in perl
Uses for scripting languages,web scripting in perlUses for scripting languages,web scripting in perl
Uses for scripting languages,web scripting in perl
 
Entrepreneur’s guide to programming
Entrepreneur’s guide to programmingEntrepreneur’s guide to programming
Entrepreneur’s guide to programming
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programming
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdf
 
Top Automation Programming Languages of 2023.pdf
Top Automation Programming Languages of 2023.pdfTop Automation Programming Languages of 2023.pdf
Top Automation Programming Languages of 2023.pdf
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
SERVER SIDE SCRIPTING
SERVER SIDE SCRIPTINGSERVER SIDE SCRIPTING
SERVER SIDE SCRIPTING
 
Programming language
Programming languageProgramming language
Programming language
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 

Mais de sana mateen

PHP Variables and scopes
PHP Variables and scopesPHP Variables and scopes
PHP Variables and scopessana mateen
 
Php and web forms
Php and web formsPhp and web forms
Php and web formssana mateen
 
Encryption in php
Encryption in phpEncryption in php
Encryption in phpsana mateen
 
Authentication methods
Authentication methodsAuthentication methods
Authentication methodssana mateen
 
Unit 1-subroutines in perl
Unit 1-subroutines in perlUnit 1-subroutines in perl
Unit 1-subroutines in perlsana mateen
 
Unit 1-strings,patterns and regular expressions
Unit 1-strings,patterns and regular expressionsUnit 1-strings,patterns and regular expressions
Unit 1-strings,patterns and regular expressionssana mateen
 
Unit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structuresUnit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structuressana mateen
 
Unit 1-perl names values and variables
Unit 1-perl names values and variablesUnit 1-perl names values and variables
Unit 1-perl names values and variablessana mateen
 

Mais de sana mateen (20)

Files
FilesFiles
Files
 
PHP Variables and scopes
PHP Variables and scopesPHP Variables and scopes
PHP Variables and scopes
 
Php intro
Php introPhp intro
Php intro
 
Php and web forms
Php and web formsPhp and web forms
Php and web forms
 
Mail
MailMail
Mail
 
Files in php
Files in phpFiles in php
Files in php
 
File upload php
File upload phpFile upload php
File upload php
 
Regex posix
Regex posixRegex posix
Regex posix
 
Encryption in php
Encryption in phpEncryption in php
Encryption in php
 
Authentication methods
Authentication methodsAuthentication methods
Authentication methods
 
Xml schema
Xml schemaXml schema
Xml schema
 
Xml dtd
Xml dtdXml dtd
Xml dtd
 
Xml dom
Xml domXml dom
Xml dom
 
Xhtml
XhtmlXhtml
Xhtml
 
Intro xml
Intro xmlIntro xml
Intro xml
 
Dom parser
Dom parserDom parser
Dom parser
 
Unit 1-subroutines in perl
Unit 1-subroutines in perlUnit 1-subroutines in perl
Unit 1-subroutines in perl
 
Unit 1-strings,patterns and regular expressions
Unit 1-strings,patterns and regular expressionsUnit 1-strings,patterns and regular expressions
Unit 1-strings,patterns and regular expressions
 
Unit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structuresUnit 1-scalar expressions and control structures
Unit 1-scalar expressions and control structures
 
Unit 1-perl names values and variables
Unit 1-perl names values and variablesUnit 1-perl names values and variables
Unit 1-perl names values and variables
 

Último

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptxNikhil Raut
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...Amil Baba Dawood bangali
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESNarmatha D
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 

Último (20)

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIES
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 

Unit 1-introduction to scripts

  • 1. BY SANA MATEEN 6/13/2016 1Introduction to scripts and scripting
  • 2. INTRODUCTION TO SCRIPTS AND SCRIPTING  Script is a program written for special runtime environment that automate the execution of tasks.  Scripting is the action of writing scripts using scripting language.  Scripting Language are used to extend the functionality of software . For example enhancing web pages by providing dynamic content.  They are designed to automate frequently used task that usually involve calling or passing commands to external program. Examples: 1. PERL- PRACTICAL EXTRACTION AND REPORT LANGUAGE 2. PHP-Hypertext Preprocessor(Personal Home Page) 3. TCL-Tool Command Language and PYTHON TCL 6/13/2016 2Introduction to scripts and scripting
  • 3. SCRIPTING VS. PROGRAMMING: IS THERE A DIFFERENCE? Scripting Programming  Scripts are interpreted . It means they are processed from scratch every time you run them.  Programs are executed. Problems addressed by Scripting language  Building applications from off-the-shelf components.  Example: Use of Visual Basic to develop GUI using prebuilt Visual Controls.  Controlling applications that have a programmable interface(protocols to be followed while building a software).  Speed of development is more important than runtime efficiency. 6/13/2016 3Introduction to scripts and scripting
  • 4. ORIGIN OF SCRIPTING  The UNIX O.S developers coined the term shellscript for sequence of commands that were read from a file and followed in sequence.  Script is a file that is intended to be executed directly rather than being compiled.  Examples of scripts with respect to unix system are:  AWK: This utility reads the standard input line by line and takes an action on part of entire line.  These actions are specified in awk script that consist of list of instructions.  Perl: is a scripting language developed by Larry Wall, especially designed for text processing.  Though Perl is not officially an acronym but many times it is used as it stands for Practical Extraction and Report Language.  It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. 6/13/2016 4Introduction to scripts and scripting
  • 5. ORIGIN OF SCRIPTING  In DOS(Disk Operating System), use of dial up connection to remote system require scripts that automate the sequence of operation required to establish a connection to remote system.  Use rasphone( Remote Access Phonebook) command.  Another occurrence of script was in Apple Macintosh HyperCard Application, which is one of the Hypertext system. 6/13/2016 5Introduction to scripts and scripting
  • 6. SCRIPTING TODAY  Scripting allows application to be developed much faster than traditional methods allow.  We can use it to manipulate,customize,automate the facilities of existing system.  Eg: Use of client side scripting and Dynamic HTML to create interactive and feature rich enhanced web pages.  Using Scripting Language with its rich functionality .These are used by UNIX admin for System maintenance work, like managing user permissions.  Windows system admin adopt Perl for their work.  Apache web server has an embedded Perl interpreter for CGI scripts 6/13/2016 6Introduction to scripts and scripting
  • 7. CGI SCRIPT ISAPI TECHNOLOGY  CGI stands for Common Gateway Interface.  It defines a standard way in which information may be passed to and from the browser and server.  CGI scripts can be written using PERL.  ISAPI stands for Internet Server Application Program Interface technology . It is set of window program calls that let you write a web server application that will run faster than CGI.  We can create Dynamic Link Library application file using this technology.  We can write an ISAPI script in any language that will create an executable object on your system. For example, C++, Visual Basic, or Perl script on Windows. 6/13/2016 7Introduction to scripts and scripting
  • 8. CHARACTERISTICS OF SCRIPTING LANGUAGE  Integrated Compile and Run Scripting Language behave as if they were interpreted. They are often an interactive, experimental activity that doesn’t fit well with the “edit-compile- link-run” cycle of conventional programming. A few Scripting Languages like Unix Shell and TCL(Tool Command Language) version 7 are indeed implemented as strict interpreters. However most of the languages in current use opt for hybrid technique which involve compiling to an intermediate form which is then interpreted.  Low Overhead and ease of use Based on the usage variables can be declared and initialized . Later focus was on explicit variable declaration, which requires that you declare every variable before you use it. Eg: Dim sum As Integer (or) sum=10;  Enhanced Functionality Most of the languages provide powerful string manipulation based on the use of regular expression(A regular expression is a string of characters that define the pattern or patterns you are viewing. ). Some languages support easy access to API or Object model exported by application. 6/13/2016 8Introduction to scripts and scripting
  • 9. CHARACTERISTICS OF SCRIPTING LANGUAGE  Efficiency is not an issue Ease of use is achieved at the expense of efficiency eg: interpretation rather than compiling Focus is not on high performance but on the speed of development together with ability to make changes to meet new requirement. 6/13/2016 9Introduction to scripts and scripting