git.go-v.org

babanmalhi/Project1

ECS150 SQ15 March 28, 2015 Due April 12, 2015 at 11:55 PM Project 1 You will be working with a partner for this project, you specify your partner in your readme file. This specification is subject to change at anytime for additional clarification. For this project, you and a partner will be implementing a fairly simple shell called ashell. The shell must be able to execute applications, be able to setup pipes between executed applications, redirect standard input/output from/to files for the executed applications, and perform simple commands internally. You must provide a make file (or cmake file) to compile your shell. Your program must be written in C or C++. You may not use scanf, fscanf, printf, fprintf, cin, cout, or their derivatives; you must use read and write system calls for all I/O. You may use the C++ containers. If you have any concerns if a standard library function is allowed, ask before using it. Submit only one copy of your project per pair on smartsite as either a zip or tar.gz file. The shell must handle commands cd, ls, pwd, history, and exit internally. Below are descriptions of the commands: cd [directory] – Changes the current working directory to specified d

source: Software Heritage origin index (GitHub origins)licence: Per source; see source termsdatabase: /home/dbs/git.dbmode: tablerecords: 54110267 (max_rowid)citation: —

ECS150 SQ15 March 28, 2015 Due April 12, 2015 at 11:55 PM Project 1 You will be working with a partner for this project, you specify your partner in your readme file. This specification is subject to change at anytime for additional clarification. For this project, you and a partner will be implementing a fairly simple shell called ashell. The shell must be able to execute applications, be able to setup pipes between executed applications, redirect standard input/output from/to files for the executed applications, and perform simple commands internally. You must provide a make file (or cmake file) to compile your shell. Your program must be written in C or C++. You may not use scanf, fscanf, printf, fprintf, cin, cout, or their derivatives; you must use read and write system calls for all I/O. You may use the C++ containers. If you have any concerns if a standard library function is allowed, ask before using it. Submit only one copy of your project per pair on smartsite as either a zip or tar.gz file. The shell must handle commands cd, ls, pwd, history, and exit internally. Below are descriptions of the commands: cd [directory] – Changes the current working directory to specified directory. If the optional directory is not specified, then the current working directory is changed to the directory specified by the HOME environmental variable. ls [directory] – Lists the files/directories in the directory specified, if no directory is specified, it lists the contents of the current working directory. The order of files listed does not matter, but the type and permissions must precede the file/directory name with one entry per line. Below is an example listing drwxr-xr-x . drwxr-xr-x .. -rwxr-xr-x ashell -rwxr-xr-x main.cpp pwd – Prints the current working directory name. history – Prints the history of the last 10 commands entered into the shell. Below is an example where the commands entered were ls, cd .., pwd, and then history: 0 ls 1 cd .. 2 pwd 3 history exit – Exi

Read full text or abstract (2,000 characters)

Cite this record

MLA
"babanmalhi/Project1." Software Heritage origin index (GitHub origins), n.d., https://git.go-v.org/record/babanmalhi%2FProject1.

Chicago
"babanmalhi/Project1." Software Heritage origin index (GitHub origins). n.d.. https://git.go-v.org/record/babanmalhi%2FProject1.

APA
Software Heritage origin index (GitHub origins). (n.d.). babanmalhi/Project1. https://git.go-v.org/record/babanmalhi%2FProject1

Share card · JSON record · Embed

Save to pass ·

source: Software Heritage origin index (GitHub origins)licence: Per source; see source termsyear: —id: babanmalhi/Project1citation: https://git.go-v.org/record/babanmalhi%2FProject1

JSON · JSON download · CSV · full text · full-text JSON ·

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.