Write a program called memo that wraps commands that are to be executed, recording the command line
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program called memo that wraps commands that are to be executed, recording the command line arguments into a memo.history file. The wrapped command should be executed using system(). Ensure that these invocations are handled:
memo
program prints a numbered history of commands executed thus far, referring to what is stored in memo.history
memo
The specified command is executed and its invocation stored in memo.history
memo -e
When the user specifies the -e flag, it must be followed by a number, specifying the matching command from memo.history
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date: