CS Electrical And Electronics
@cselectricalandelectronics

Extend above program to accept multiple commands sequentially

All QuestionsCategory: Operating SystemExtend above program to accept multiple commands sequentially
Anonymous asked 2 years ago
  • Display some string as shell prompt
  • Take command name (string) as input from user
  • Create a child process
  • Launch new program/command in child using execl’
  • Parent will wait for completion of child
  • Repeat until given input is “quit”