This straightforward approach doesn't seem to work:
In[42]:= cmd = StringSplit@"zip -r ~/data.zip ~/test/*"
In[43]:= RunProcess@cmd
This straightforward approach doesn't seem to work:
In[42]:= cmd = StringSplit@"zip -r ~/data.zip ~/test/*"
In[43]:= RunProcess@cmd
Since Mathematica 8.0 we are in luck and there is a command called CreateArchive that can do this for us. Documentation: CreateArchive.
zipwill do wildcard expansion, which is the job of the shell... this is nothing to do with Mathematica, it seems to me. – Oleksandr R. Jan 18 '16 at 23:35CreateArchive? – C. E. Jan 19 '16 at 00:54execingzipdirectly from C and see if it works--I bet it won't. – Oleksandr R. Jan 19 '16 at 01:25zipdirectly. I am sure it would work if you used the/a shell to evaluate this command line. – Oleksandr R. Jan 19 '16 at 01:30