SlideShare a Scribd company logo
1 of 12
CSE 241
How to Use Script Command &
Zip Files in UNIX/Linux
Victoria Minorczyk
First enter the directory where the file you want to run is located.
Use the command “cd <name>” as shown above where <name> is the name of the directory.

Notice how the prompt changes to reflect the current directory.
Your prompt should now reflect the directory that your desired file is located.
To view the contents of a directory use the command “ls”.
As you can see, my Verilog file “hw8.v” is located in the “cse241” directory.
To start the script, use the command “script <name>.txt” as shown above, where
<name> is the name what you want to call your script file.
Make sure the file extension is “.txt” Also, if you do not give the script text file a name, it will
default to typescript. After entering this above script command, you will get confirmation that
the script has started. It will also inform you of the script file name, as shown below.
Now that the script has started, you will enter all the commands to run your Verilog
code just as you normally would.
You will start will the iverilog command as shown above. In this step you will link the “.v” file to
the “.vvp”. Then, as shown below, you will use the vvp command with the “.vvp” file you just
created. This step should create the “.vcd” file you will use with gtkwave.
You should get some output from your testbench module after running your vvp command.
This will all be captured by the script. Also note the confirmation message that your “.vcd” dump file was
created.
THIS IN NOT THE OUTPUT FOR YOUR ASSIGNED PROBLEM (5.36). THIS IS THE OUTPUT FOR THE SIMILAR
PROBLEM I WENT OVER IN RECIATION.
Once you get output from your testbench, you may end the script.
To end the script use the command “exit” as shown above. Once entering this command you will
get a confirmation message that the script has stop recording, as shown below.
Now if you use the “ls” command, you will see the script file you just created.
In my case, it is named “hw8.txt” as I specified when I started the script. As shown below, to
view what the script has captured, use the command “more <name>.txt” where <name> is the
name for your script text file.
As you can see,
this
was captured by
the script
command
and displayed
with
the more
command.
Now we are ready to zip up the files.
I would like to zip up all of my homework 8 files. So first, I must enter the directory where
all my homework 8 files are located. In this example I am already in that directory. If you
are not, you the “cd” command earlier in these slides. To zip use the command:
“zip <directory name> <new zip file name>.zip <list of files to be included in new zip>”
In the example below, I use the command “zip csce241 cse241.zip hw8.*”

Because all of my files are named “hw8” I used “hw8.*” to include hw8.v, hw8.vvp, hw8.vcd,
hw8.txt. As you can see, “*” is a wildcard. As shown below, when you enter this command,
you will get a confirmation message telling you all the files that were added to your zip file.
Please note, that I could have also used:
“zip cse241
cse241.zip hw8.v hw8.vvp hw8.vcd
Or, to include every single file in the directory use “*.*” like this:
“zip cse241 cse241.zip *.*”

hw8.txt”

You can now use the “ls” command to see the zip file you have just created, as shown below.
Once you have all the files zipped that you desire to turn in, you may use the
“submit_cse241” as shown below.

After you submit, you should receive a confirmation telling you your submission was successful,
as shown above.

More Related Content

What's hot

2. untuk mengganti repository debian ke repo local seperti repo kambing milik ui
2. untuk mengganti repository debian ke repo local seperti repo kambing milik ui2. untuk mengganti repository debian ke repo local seperti repo kambing milik ui
2. untuk mengganti repository debian ke repo local seperti repo kambing milik uiSri Yuyaxdab
 
Cloud Foundry Command Line
Cloud Foundry Command LineCloud Foundry Command Line
Cloud Foundry Command LineJulia R Nash
 
Netty - anfix tech&beers
Netty - anfix tech&beersNetty - anfix tech&beers
Netty - anfix tech&beersjorgecarabias
 
Installing Python on Mac
Installing Python on MacInstalling Python on Mac
Installing Python on MacWei-Wen Hsu
 
Installing Tomcat on Ubuntu Instance
Installing Tomcat on Ubuntu InstanceInstalling Tomcat on Ubuntu Instance
Installing Tomcat on Ubuntu Instancekamarul kawnayeen
 
Groovy Powered Clean Code
Groovy Powered Clean CodeGroovy Powered Clean Code
Groovy Powered Clean Codenoamt
 
Project 2 - how to compile os161?
Project 2 - how to compile os161?Project 2 - how to compile os161?
Project 2 - how to compile os161?Xiao Qin
 
CP3108B (Mozilla) Sharing Session on Add-on SDK
CP3108B (Mozilla) Sharing Session on Add-on SDKCP3108B (Mozilla) Sharing Session on Add-on SDK
CP3108B (Mozilla) Sharing Session on Add-on SDKMifeng
 
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04Febi Gelar Ramadhan
 
Install apache on centos
Install apache on centosInstall apache on centos
Install apache on centoshengko
 
Scaling antispam solutions with Puppet
Scaling antispam solutions with PuppetScaling antispam solutions with Puppet
Scaling antispam solutions with PuppetGiovanni Bechis
 
Write book in markdown
Write book in markdownWrite book in markdown
Write book in markdownLarry Cai
 
How to add system calls to OS/161
How to add system calls to OS/161How to add system calls to OS/161
How to add system calls to OS/161Xiao Qin
 
Running openCV project on Mac OS
Running openCV project on Mac OSRunning openCV project on Mac OS
Running openCV project on Mac OSWei-Wen Hsu
 
Test Kitchen and Infrastructure as Code
Test Kitchen and Infrastructure as CodeTest Kitchen and Infrastructure as Code
Test Kitchen and Infrastructure as CodeCybera Inc.
 
Buffer overflow for Beginners
Buffer overflow for BeginnersBuffer overflow for Beginners
Buffer overflow for BeginnersAjin Abraham
 

What's hot (20)

2. untuk mengganti repository debian ke repo local seperti repo kambing milik ui
2. untuk mengganti repository debian ke repo local seperti repo kambing milik ui2. untuk mengganti repository debian ke repo local seperti repo kambing milik ui
2. untuk mengganti repository debian ke repo local seperti repo kambing milik ui
 
Autoexec32(2)
Autoexec32(2)Autoexec32(2)
Autoexec32(2)
 
Cloud Foundry Command Line
Cloud Foundry Command LineCloud Foundry Command Line
Cloud Foundry Command Line
 
Netty - anfix tech&beers
Netty - anfix tech&beersNetty - anfix tech&beers
Netty - anfix tech&beers
 
Installing Python on Mac
Installing Python on MacInstalling Python on Mac
Installing Python on Mac
 
Installing Tomcat on Ubuntu Instance
Installing Tomcat on Ubuntu InstanceInstalling Tomcat on Ubuntu Instance
Installing Tomcat on Ubuntu Instance
 
General fraction
General fractionGeneral fraction
General fraction
 
Groovy Powered Clean Code
Groovy Powered Clean CodeGroovy Powered Clean Code
Groovy Powered Clean Code
 
PHPCS (PHP Code Sniffer)
PHPCS (PHP Code Sniffer)PHPCS (PHP Code Sniffer)
PHPCS (PHP Code Sniffer)
 
Project 2 - how to compile os161?
Project 2 - how to compile os161?Project 2 - how to compile os161?
Project 2 - how to compile os161?
 
CP3108B (Mozilla) Sharing Session on Add-on SDK
CP3108B (Mozilla) Sharing Session on Add-on SDKCP3108B (Mozilla) Sharing Session on Add-on SDK
CP3108B (Mozilla) Sharing Session on Add-on SDK
 
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
 
Install apache on centos
Install apache on centosInstall apache on centos
Install apache on centos
 
Scaling antispam solutions with Puppet
Scaling antispam solutions with PuppetScaling antispam solutions with Puppet
Scaling antispam solutions with Puppet
 
Write book in markdown
Write book in markdownWrite book in markdown
Write book in markdown
 
How to add system calls to OS/161
How to add system calls to OS/161How to add system calls to OS/161
How to add system calls to OS/161
 
Running openCV project on Mac OS
Running openCV project on Mac OSRunning openCV project on Mac OS
Running openCV project on Mac OS
 
Test Kitchen and Infrastructure as Code
Test Kitchen and Infrastructure as CodeTest Kitchen and Infrastructure as Code
Test Kitchen and Infrastructure as Code
 
!!! Huong dan !!!
!!! Huong dan !!!!!! Huong dan !!!
!!! Huong dan !!!
 
Buffer overflow for Beginners
Buffer overflow for BeginnersBuffer overflow for Beginners
Buffer overflow for Beginners
 

Viewers also liked

Candy Vidal Resume 2015
Candy Vidal Resume 2015Candy Vidal Resume 2015
Candy Vidal Resume 2015Candy Vidal
 
A. Prestininzi - NHAZCA Open Day
A. Prestininzi - NHAZCA Open DayA. Prestininzi - NHAZCA Open Day
A. Prestininzi - NHAZCA Open Dayalfredorocca
 
S. Cardellini - NHAZCA Open Day
S. Cardellini - NHAZCA Open DayS. Cardellini - NHAZCA Open Day
S. Cardellini - NHAZCA Open Dayalfredorocca
 
F. Bozzano - NHAZCA Open Day
F. Bozzano - NHAZCA Open DayF. Bozzano - NHAZCA Open Day
F. Bozzano - NHAZCA Open Dayalfredorocca
 
Pohatu2013 meettheteacher
Pohatu2013 meettheteacherPohatu2013 meettheteacher
Pohatu2013 meettheteachernikkijelangford
 
χελιδονισματα- the swallow song
χελιδονισματα- the swallow songχελιδονισματα- the swallow song
χελιδονισματα- the swallow songstafilakou67
 

Viewers also liked (9)

Greek dishes
Greek dishesGreek dishes
Greek dishes
 
Candy Vidal Resume 2015
Candy Vidal Resume 2015Candy Vidal Resume 2015
Candy Vidal Resume 2015
 
Lab 4
Lab 4Lab 4
Lab 4
 
A. Prestininzi - NHAZCA Open Day
A. Prestininzi - NHAZCA Open DayA. Prestininzi - NHAZCA Open Day
A. Prestininzi - NHAZCA Open Day
 
S. Cardellini - NHAZCA Open Day
S. Cardellini - NHAZCA Open DayS. Cardellini - NHAZCA Open Day
S. Cardellini - NHAZCA Open Day
 
The acropolis
The acropolisThe acropolis
The acropolis
 
F. Bozzano - NHAZCA Open Day
F. Bozzano - NHAZCA Open DayF. Bozzano - NHAZCA Open Day
F. Bozzano - NHAZCA Open Day
 
Pohatu2013 meettheteacher
Pohatu2013 meettheteacherPohatu2013 meettheteacher
Pohatu2013 meettheteacher
 
χελιδονισματα- the swallow song
χελιδονισματα- the swallow songχελιδονισματα- the swallow song
χελιδονισματα- the swallow song
 

Similar to Cse 241

Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to KernelMuhammad Bilal
 
How to export import a mysql database via ssh in aws lightsail wordpress rizw...
How to export import a mysql database via ssh in aws lightsail wordpress rizw...How to export import a mysql database via ssh in aws lightsail wordpress rizw...
How to export import a mysql database via ssh in aws lightsail wordpress rizw...AlexRobert25
 
Presentacio.pptx
Presentacio.pptxPresentacio.pptx
Presentacio.pptxgdscudg
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Boxguest34a3a419
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows BoxJayanta Dash
 
How do I update the crawford slackware box so that it is running the most up ...
How do I update the crawford slackware box so that it is running the most up ...How do I update the crawford slackware box so that it is running the most up ...
How do I update the crawford slackware box so that it is running the most up ...Paul Prawdzik
 
Linux container internals
Linux container internalsLinux container internals
Linux container internalsAshwin Bilgi
 
Terminal commands ubuntu 2
Terminal commands ubuntu 2Terminal commands ubuntu 2
Terminal commands ubuntu 2raj upadhyay
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxkarlhennesey
 
Installation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHPInstallation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHPRupesh Kumar
 
Installing Hortonworks Hadoop for Windows
Installing Hortonworks Hadoop for WindowsInstalling Hortonworks Hadoop for Windows
Installing Hortonworks Hadoop for WindowsJonathan Bloom
 
Getting started with PHPUnit
Getting started with PHPUnitGetting started with PHPUnit
Getting started with PHPUnitKhyati Gala
 
Deploying your rails application to a clean ubuntu 10
Deploying your rails application to a clean ubuntu 10Deploying your rails application to a clean ubuntu 10
Deploying your rails application to a clean ubuntu 10Maurício Linhares
 

Similar to Cse 241 (20)

Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to Kernel
 
How to export import a mysql database via ssh in aws lightsail wordpress rizw...
How to export import a mysql database via ssh in aws lightsail wordpress rizw...How to export import a mysql database via ssh in aws lightsail wordpress rizw...
How to export import a mysql database via ssh in aws lightsail wordpress rizw...
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
Linux intro 4 awk + makefile
Linux intro 4  awk + makefileLinux intro 4  awk + makefile
Linux intro 4 awk + makefile
 
Unix commands
Unix commandsUnix commands
Unix commands
 
Presentacio.pptx
Presentacio.pptxPresentacio.pptx
Presentacio.pptx
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Box
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Box
 
Docker Starter Pack
Docker Starter PackDocker Starter Pack
Docker Starter Pack
 
How do I update the crawford slackware box so that it is running the most up ...
How do I update the crawford slackware box so that it is running the most up ...How do I update the crawford slackware box so that it is running the most up ...
How do I update the crawford slackware box so that it is running the most up ...
 
Linux container internals
Linux container internalsLinux container internals
Linux container internals
 
Terminal commands ubuntu 2
Terminal commands ubuntu 2Terminal commands ubuntu 2
Terminal commands ubuntu 2
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
 
Installation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHPInstallation of OpenBiblio on Windows XP using EasyPHP
Installation of OpenBiblio on Windows XP using EasyPHP
 
Installing Hortonworks Hadoop for Windows
Installing Hortonworks Hadoop for WindowsInstalling Hortonworks Hadoop for Windows
Installing Hortonworks Hadoop for Windows
 
Getting started with PHPUnit
Getting started with PHPUnitGetting started with PHPUnit
Getting started with PHPUnit
 
Deploying your rails application to a clean ubuntu 10
Deploying your rails application to a clean ubuntu 10Deploying your rails application to a clean ubuntu 10
Deploying your rails application to a clean ubuntu 10
 

Recently uploaded

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 

Recently uploaded (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 

Cse 241

  • 1. CSE 241 How to Use Script Command & Zip Files in UNIX/Linux Victoria Minorczyk
  • 2. First enter the directory where the file you want to run is located. Use the command “cd <name>” as shown above where <name> is the name of the directory. Notice how the prompt changes to reflect the current directory. Your prompt should now reflect the directory that your desired file is located.
  • 3. To view the contents of a directory use the command “ls”. As you can see, my Verilog file “hw8.v” is located in the “cse241” directory.
  • 4. To start the script, use the command “script <name>.txt” as shown above, where <name> is the name what you want to call your script file. Make sure the file extension is “.txt” Also, if you do not give the script text file a name, it will default to typescript. After entering this above script command, you will get confirmation that the script has started. It will also inform you of the script file name, as shown below.
  • 5. Now that the script has started, you will enter all the commands to run your Verilog code just as you normally would. You will start will the iverilog command as shown above. In this step you will link the “.v” file to the “.vvp”. Then, as shown below, you will use the vvp command with the “.vvp” file you just created. This step should create the “.vcd” file you will use with gtkwave.
  • 6. You should get some output from your testbench module after running your vvp command. This will all be captured by the script. Also note the confirmation message that your “.vcd” dump file was created. THIS IN NOT THE OUTPUT FOR YOUR ASSIGNED PROBLEM (5.36). THIS IS THE OUTPUT FOR THE SIMILAR PROBLEM I WENT OVER IN RECIATION.
  • 7. Once you get output from your testbench, you may end the script. To end the script use the command “exit” as shown above. Once entering this command you will get a confirmation message that the script has stop recording, as shown below.
  • 8. Now if you use the “ls” command, you will see the script file you just created. In my case, it is named “hw8.txt” as I specified when I started the script. As shown below, to view what the script has captured, use the command “more <name>.txt” where <name> is the name for your script text file.
  • 9. As you can see, this was captured by the script command and displayed with the more command.
  • 10. Now we are ready to zip up the files. I would like to zip up all of my homework 8 files. So first, I must enter the directory where all my homework 8 files are located. In this example I am already in that directory. If you are not, you the “cd” command earlier in these slides. To zip use the command: “zip <directory name> <new zip file name>.zip <list of files to be included in new zip>” In the example below, I use the command “zip csce241 cse241.zip hw8.*” Because all of my files are named “hw8” I used “hw8.*” to include hw8.v, hw8.vvp, hw8.vcd, hw8.txt. As you can see, “*” is a wildcard. As shown below, when you enter this command, you will get a confirmation message telling you all the files that were added to your zip file.
  • 11. Please note, that I could have also used: “zip cse241 cse241.zip hw8.v hw8.vvp hw8.vcd Or, to include every single file in the directory use “*.*” like this: “zip cse241 cse241.zip *.*” hw8.txt” You can now use the “ls” command to see the zip file you have just created, as shown below.
  • 12. Once you have all the files zipped that you desire to turn in, you may use the “submit_cse241” as shown below. After you submit, you should receive a confirmation telling you your submission was successful, as shown above.