SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageDr.YNM
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its ApplicationsAbhijeet Singh
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript ProgrammingSehwan Noh
 
Common gateway interface
Common gateway interfaceCommon gateway interface
Common gateway interfaceAnandita
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web DevelopmentParvez Mahbub
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On PythonShivam Gupta
 
Benefits & features of python |Advantages & disadvantages of python
Benefits & features of python |Advantages & disadvantages of pythonBenefits & features of python |Advantages & disadvantages of python
Benefits & features of python |Advantages & disadvantages of pythonparadisetechsoftsolutions
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language ProcessingPranav Gupta
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Edureka!
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python ProgrammingKamal Acharya
 

What's hot (20)

Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its Applications
 
Javascript
JavascriptJavascript
Javascript
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
 
Common gateway interface
Common gateway interfaceCommon gateway interface
Common gateway interface
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
Introduction to Python Basics Programming
Introduction to Python Basics ProgrammingIntroduction to Python Basics Programming
Introduction to Python Basics Programming
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web Development
 
What is an API?
What is an API?What is an API?
What is an API?
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
Python Presentation
Python PresentationPython Presentation
Python Presentation
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Benefits & features of python |Advantages & disadvantages of python
Benefits & features of python |Advantages & disadvantages of pythonBenefits & features of python |Advantages & disadvantages of python
Benefits & features of python |Advantages & disadvantages of python
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
 
Scripting Languages
Scripting LanguagesScripting Languages
Scripting Languages
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 

Similar to 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
 

Similar to 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
 

More from 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
 

More from 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
 

Recently uploaded

Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxsomshekarkn64
 
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
 
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
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
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
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 

Recently uploaded (20)

Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptx
 
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
 
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
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 

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