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

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

Introduction to Java 2 Programming Lecture 4 Writing Java Applications, Java Development Tools.
DOS commands.
DOS & Windows O/s Prof. Sujata Rao Less 5.
Introduction to Programming using Matlab Session 2 P DuffourJan 2008.
MS-Word XP Lesson 1.
 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.
Introduction to Java.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Ch 26 & 27 User Interfaces.
Computer Systems Week 10: File Organisation Alma Whitfield.
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
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.
Programming With C.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Intro and Review Welcome to Java. Introduction Java application programming Use tools from the JDK to compile and run programs. Videos at
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
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).
Ben Stöver Winter term 2014/2015 Command line and batch files Molekular Phylogenetics – Practical.
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.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
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.
An Introduction to Computers and Visual Basic
Text by: Lambert and Osborne
Chapter 2 First Java Programs
An Introduction to Computers and Visual Basic
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Chapter 2: System Structures
Run Java file with Window cmd
An Introduction to Computers and Visual Basic
Running a Java Program using Blue Jay.
Lab 8: GUI testing Software Testing LTAT
Presentation transcript:

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

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ The command line 1 Kommandozeile 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)

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ Usage 3 1 Kommandozeile 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

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ Working directory 4 1 Kommandozeile 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

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ Specifiying paths (1) 5 1 Kommandozeile 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

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ 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

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ Important commands 7 1 Kommandozeile 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)

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ Batch files 8 1 Kommandozeile 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)

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ Java Virtual Machine 2. Java Technologie 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

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ 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 Technologie Command (JVM) Java application Parameter for the Java application

Kommandozeile und bioinformatische Dateiformate Ben StöverFortgeschrittenenmodul Molekulare Phylogenetik – Praktikum Winter term 2013/ Example RandSeq Titel der Präsentation 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