Ben Stöver Winter term 2014/2015 Command line and batch files Molekular Phylogenetics – Practical.

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming Lecture 4 Writing Java Applications, Java Development Tools.
Advertisements

Ben Stöver Winter term 2013/2014 Command line and batch files Molekular Phylogenetics – Practical.
DOS commands.
DOS & Windows O/s Prof. Sujata Rao Less 5.
 Statistics package  Graphics package  Programming language  Can be used to share/reproduce analyses  Many new packages being created - can be downloaded.
 2005 Pearson Education, Inc. All rights reserved Introduction.
Viewing and using data from a SonoBatch run. SonoBatch processing generates tab-delimited text files readable as spreadsheets. To open in Excel, select.
Guide To UNIX Using Linux Third Edition
Introduction to Java.
Command Console Tutorial BCIS 3680 Enterprise Programming.
SERVLETS.
Programming Batch Files Aim: To introduce the concept of Batch processing and programming techniques. Lesson Outcomes  The need for Batch Processing.
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Visual Basic Chapter 1 Mr. Wangler.
Ch 26 & 27 User Interfaces.
Computer Systems Week 10: File Organisation Alma Whitfield.
CS110/CS119 Introduction to Computing (Java)
DOS Understanding what you can do. Operating System Traits An OS only works with one type of processor –X86 processors for us; Motorola for Mac –Must.
MATLAB File Management. MATLAB User File Management Matlab provides a group of commands to manage user files. For more information, type help iofun. pwd.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
Introduction to Shell Script Programming
User interface design. Recap OOD is an approach to design so that design components have their own private state and operations Objects should have constructor.
CSC 480 Software Engineering Lecture 19 Nov 11, 2002.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
CHAPTER FOUR COMPUTER SOFTWARE.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Ch 41 Program Files, Data Files, and Subdirectories.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Computer Programming 12 Mr. Jean March 19 th, 2013.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
S9-1 ADM , Section 9, August 2005 Copyright  2005 MSC.Software Corporation SECTION 9 COMMAND LANGUAGE.
Intro and Review Welcome to Java. Introduction Java application programming Use tools from the JDK to compile and run programs. Videos at
Chapter 10: File-System Interface 10.1 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts – 8 th Edition 2014.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
Ben Stöver WS 2012/2013 Model and hypothesis testing with HyPhy Molecular Phylogenetics – exercise.
Computer Systems Week 11: The Command Line Interface Alma Whitfield.
Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
DOS and the Command Line CS 21a: Introduction to Computing I Department of Information Systems and Computer Science Ateneo de Manila University.
1.  Microsoft DOS (Disk Operating System) use a command line user interface.command line  A command line user interface means that the user is required.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
DOS and the Command Line CS 21a: Introduction to Computing I First Semester,
Chapter Three The UNIX Editors.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
CSC 121 Computers and Scientific Thinking Fall Event-Driven Programming.
Operating System. What is Operating System OS is system software, which may be viewed as collection of software consisting of procedures for operating.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
MS-DOS is an acronym for MicroSoft Disk Operating System It is a CUI based operating system. It provides user with a command prompt (generally called.
2Operating Systems  Program that runs on a computer  Manages hardware resources  Allows for execution of programs  Acts as an intermediary between.
An Introduction to Computers and Visual Basic
Text by: Lambert and Osborne
Introduction to javadoc
Chapter 2: System Structures
Run Java file with Window cmd
Running a Java Program using Blue Jay.
Lab 8: GUI testing Software Testing LTAT
Presentation transcript:

Ben Stöver Winter term 2014/2015 Command line and batch files Molekular Phylogenetics – Practical

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ The command line 1 Command line 2 Alternative to the graphical user interface (GUI) of an operating system Advantages: Commands can be saved for repeated use One program is able to execute other programs Experienced users can perform some tasks faster than with the GUI Drawbacks: Commands and options have to be known by the user (or displayed in a more time-consuming way than in the GUI)

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Usage 3 1 Command line An input consists of a command and a list of parameters. Command: Name of an executable file (e.g. „winword.exe“) Standard command (e.g. „cd“ for change directory) Parameter list: Separated by spaces Provide further information to the executed application e.g. the name of a file to opened with the application BefehlParameter abgetrennt durch Leerzeichen

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Working directory 4 1 Command line The current working directory is displayed in front of the input cursor Files in there can be referenced without the full path The command „cd“ changes the working directory commandpath relative to the current working directoty („C:\“) as the only parameter Changed working directory

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Specifiying paths (1) 5 1 Command line File locations (as commands or parameters) can be specified in different ways: Application and document are both located in the current working directory (relative paths can be used for both) Application is in the working directory, the document is referenced by a relative path „..“ means „one level upwards“

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Specifiying paths (2) 6 Application in the current working directory, document referenced by an absolute path Application referenced by an absolute path, document in the current working directory Since the path to the application contains spaces, is has to be put in quotation marks Otherwise „C:\Program“ would be the command and there would be 4 parameters: „Files“ „(x86)\Editoren\Microsoft“ „Office\Office14\winword.exe“ „Dokument.docx“ Of course is is always possible to specify application and dokument with absolute paths 1 Kommandozeile

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Important commands 7 1 Command line cd Changes the working directory dir Lists the contents of the working directory del Deletes the specified file (or all files in the specified folder) md Creates a new directory rd Deletes the specified directory copy Copies a file move Moves a file exit Terminates the command line session (The same effect as closing the command line window)

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Batch files 8 1 Command line Expressions for the command line can also be saved in text files Repeated tasks can be saved and do have to retyped every time Files have the extension „bat“ Every line in the file contains one expression (consisting of a command and possible parameters) Example: Sets the working directory to the Documents of the user „BenStoever“ and starts Word To execute a batch file simple type its name into the command line (or double click on it)

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Java Virtual Machine 2. Java technology 9 Java applications cannot be executed directly They have to be executed by a virtual machine (JVM) The virtual machine is an executable file compiled for the according operating system The java application is contained in a JAR file and can be executed on all operating systems where a virtual machine is available Advantage: Java applications are indendant on the operating system Disatvantage: A JVM has to be installed, Complex calculations in Java code might take longer than in native applications

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Starting a Java application 10 Der command (executable file) is the JVM in this case Its first parameter is always „-jar“ The Java application file (JAR file) is the second parameter Additional parameters that are specified are passed to the application by the JVM 2. Java technology Command (JVM) Java application Parameter for the Java application

Command line and batch files Ben StöverMolecular Phylogenetics – Practical Winter term 2014/ Example RandSeq 2. Java technology 11 RandSeq is a program to generate equally distributed random DNA and RAN sequences It is written in Java and therefore has to be started via java –jar RandSeq expects the following command line parameters: java –jar RandSeq.jar can either be –dna or -rna The remaining rate for thymine or uracil is calculated from the others