Thank you for visiting the BlackBerry Support Community Forums.
- Kevin Michaluk, Founder, CrackBerry.com
09-29-2013 09:40 PM
As above, I use system() to call the TAR command, it works with -cf, I tried to add compression using -z and the archive was not created, i use test.tar as the sample archive name, and the file was created but it seems to be empty, using it without -z works though.
Solved! Go to Solution.
10-03-2013 06:06 AM
Can you post the device model and OS version you're testing with please? Always a good idea to include this information.
I tried with my Z10 and found that gzip appears to be absent which is why tar with -z is failing. If you open a ssh session from Momentics you can test this at the command line:
$ tar cvfz test.tar hello.txt goodbye.txt
tar (child): gzip: goodbye.txt
Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
I'll check this further as I'm not clear whether this is deliberate or an ommission in the build.
10-03-2013 10:21 AM
I can confirm that the compression option of tar is not supported. gzip is not included in the BlackBerry 10 platform at this stage. Sorry :-)
10-03-2013 10:34 AM
zip is there though in /usr/bin so you could compress in a separate step.