Oct 16, 2017 at 11:21pm UTC
Directions:
Make a new directory called polygon. Copy the program lines.c ( or lines.cpp ) (from /pool/u/class/cs420/viewport) to your polygon directory.
I am in my polygon directory and I am trying to copy the lines.cpp file from viewport.
I input "
cp -t /pool/u/class/cs420/draw/*&. " in terminal.
[1] 2617
bash: .: filename argument required
.: usage: . filename [arguments]
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/bitmap': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/bitmap.cpp': Permission denied
[003996459@jb356-5 polygon]$ cp: cannot create regular file '/pool/u/class/cs420/viewport/11/bitmap.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw1': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw1.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw1.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/drawFunc': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/drawFunc.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/drawFunc.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_main.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_main.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_point': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_point.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_point.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_poly': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_poly1': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_poly1.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_poly1.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_poly.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/draw_poly.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/fly': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/fly.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/fly.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/lines': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/lines.cpp': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/lines.o': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/Makefile': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/Makefile.draw_poly': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/t': Permission denied
cp: cannot create regular file '/pool/u/class/cs420/viewport/11/t1': Permission denied
How do I fix this and make these files appear in my polygon directory?
Last edited on Oct 16, 2017 at 11:22pm UTC
Oct 17, 2017 at 2:25am UTC
This has nothing to do with C++, but FWIW:
Copy the file named /pool/u/class/cs420/viewport/lines.c into the current directory:
% cp /pool/u/class/cs420/viewport/lines.c .
Note the trailing dot, which names the current directory. The white-space is important.
Last edited on Oct 17, 2017 at 2:26am UTC