wu Command Non-writeable Handling
wu command now safely exits, and prints error message if filename ofstream is non-writeable (or otherwise "bad"). Before, would appear to execute register dump, but output file would not exist.
Now handles all of the following cases:
>wu writeTest/existingFile.txt
File name already in use
>wu writeTest/newFile.txt
Dumping registers
Waiting for 2 seconds between register dumps...
Dumping registers
Register dumps completed
Adding ">status" output with verbosity level 9
Output found at /home/ccosby/amc13/writeTest/newFile.txt
Please e-mail wusx@bu.edu with details of the conditions under which the dump was captured and the problems experienced.
>wu /home/ccosby/amc13/writeTest/newFile2.txt
Dumping registers
Waiting for 2 seconds between register dumps...
Dumping registers
Register dumps completed
Adding ">status" output with verbosity level 9
Output found at /home/ccosby/amc13//home/ccosby/amc13/writeTest/newFile2.txt
Please e-mail wusx@bu.edu with details of the conditions under which the dump was captured and the problems experienced.
>wu noWriteTest/noWritePermissions.txt
Cannot create output file. Please move to a directory where you have writing permissions, or input a path to such a directory, e.g.:
>wu /path/to/writeable/dir/outFileName.txt
>wu /root/cantWriteInRoot.txt
Cannot create output file. Please move to a directory where you have writing permissions, or input a path to such a directory, e.g.:
>wu /path/to/writeable/dir/outFileName.txt
>wu /home/ccosby/amc13/noWriteTest/lastTry.txt
Cannot create output file. Please move to a directory where you have writing permissions, or input a path to such a directory, e.g.:
>wu /path/to/writeable/dir/outFileName.txt
Closes #3 (closed)