Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Perl and File Transfer: Instructions for Mac and Windows Users in BIF 101, Fall 2008 - Pro, Lab Reports of Bioinformatics

Instructions for running perl and transferring files between computers for students enrolled in bif 101 during the fall 2008 semester. The instructions cover both mac and windows systems, including downloading and installing perl, creating folders, and using the terminal or command prompt. The document also explains methods for transferring files between computers, such as emailing files or using a usb drive.

Typology: Lab Reports

Pre 2010

Uploaded on 08/18/2009

koofers-user-r2v
koofers-user-r2v 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
BIF 101 – Fall 2008 – Running Perl and transferring files between computers
Instructions for running Perl from home
1 – Mac Computers
If you have a Mac you will start the terminal utility exactly as we do in the lab here at
Canisius. Terminal is located in: hard drive Æ applications Æ utilities Æ terminal. Perl
should automatically be installed on your system.
Before you get rolling make sure to create a folder where you will put all your course
work. I suggest a folder called BIF101 with subfolders named for the lab or assignment
date, for example, 9-4. Put this folder where it is easy to find!
In the terminal window make sure to move to the folder you have created using the cd
command. To create a new folder use the mkdir command. We will review this in class.
2 – Windows Computers
Download and Install Perl
You need to get a copy of Perl in order to get started. To download, go to:
http://www.activestate.com/Products/activeperl/index.mhtml
and click on the link by the top that says Free Active Perl Download Now (underneath
that it says Windows … and you should see a downward pointing arrow). Once you click
that link select the Save File option in the file chooser that comes up. Make sure you
know WHERE it is saved. If you download it and don’t see it anywhere use the search
function (off the Start menu – the start of that file name is ActivePerl which you can use
as a search term).
Once you’ve located that downloaded file just double click on it and follow the
instructions.
Before you get rolling make sure to create a folder where you will put all your course
work. I suggest a folder called BIF101 with subfolders named for the lab or assignment
date, for example, 9-4. Put this folder where it is easy to find!
Use Perl
After it’s installed you can use it anytime.
We will work with Perl using the Windows Command Prompt and the Notepad text
editor.
pf2

Partial preview of the text

Download Perl and File Transfer: Instructions for Mac and Windows Users in BIF 101, Fall 2008 - Pro and more Lab Reports Bioinformatics in PDF only on Docsity!

BIF 101 – Fall 2008 – Running Perl and transferring files between computers

Instructions for running Perl from home

1 – Mac Computers

If you have a Mac you will start the terminal utility exactly as we do in the lab here at Canisius. Terminal is located in: hard drive Æ applications Æ utilities Æ terminal. Perl should automatically be installed on your system.

Before you get rolling make sure to create a folder where you will put all your course work. I suggest a folder called BIF101 with subfolders named for the lab or assignment date, for example, 9-4. Put this folder where it is easy to find!

In the terminal window make sure to move to the folder you have created using the cd command. To create a new folder use the mkdir command. We will review this in class.

2 – Windows Computers

Download and Install Perl

You need to get a copy of Perl in order to get started. To download, go to:

http://www.activestate.com/Products/activeperl/index.mhtml

and click on the link by the top that says Free Active Perl Download Now (underneath that it says Windows … and you should see a downward pointing arrow). Once you click that link select the Save File option in the file chooser that comes up. Make sure you know WHERE it is saved. If you download it and don’t see it anywhere use the search function (off the Start menu – the start of that file name is ActivePerl which you can use as a search term).

Once you’ve located that downloaded file just double click on it and follow the instructions.

Before you get rolling make sure to create a folder where you will put all your course work. I suggest a folder called BIF101 with subfolders named for the lab or assignment date, for example, 9-4. Put this folder where it is easy to find!

Use Perl

After it’s installed you can use it anytime.

We will work with Perl using the Windows Command Prompt and the Notepad text editor.

Start the Command Prompt window. It can be found in Start Æ All Programs Æ Accessories Æ Command Prompt

In the terminal window make sure to move to the folder you have created using the cd command. Also make sure to open your folder so that you can see it on your desktop. To create a new folder use File Æ New Æ Folder in that window, it will be the easiest way to create new folders.

Once you’re in the right folder, to create a file or edit an existing file type

notepad filename.pl

The Notepad program (a text editor) will open and you can type in there. If you create a file from inside of notepad instead of from the command prompt it will have a .txt extension.

To see what files are in your current folder from the command prompt type dir

Instructions for transferring files between computers

There are a couple ways you can accomplish this. You will need to do this for several reasons. The files you create in the lab will not stay on those computers. Sometimes when you create a file at home you will need to access it from the lab. Finally, it is likely that some program will be worked on both from home and in the lab.

Method 1 : Email yourself any programs or files you create – you can do this from home or from the lab. You can then access the files from your email account and continue to work on them.

Method 2 : Copy your programs or files onto a removable storage device such as a USB drive

IMPORTANT : Once you start copying files around be very careful that you don’t overwrite your current version. You might want to name files (e.g. progv2.pl, progv3.pl) so as to distinguish different versions.