I am writing a tcl script that I use the zip command at the end to gather up the results of my scripts procedures into a zip file.
Let's say I have 2 paths:
I am currently using:
exec zip -r /home/whatever/tmp/endDir /usr/whatever/tmp/startDir
The issue is that when I do this, while I DO get the contents of starDir, I also get the a folder structure in the zip file starting from /usr.
How do I get JUST the files in the startDir, and not the directories themselves?