Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Not working

Your tar tool may not support --directory option. Try to remove it.
Emagin

Not working

I can't get this to work
I tried to tar|gzip an archive using the built in script:
tar -c -j -f "!?&Archive Name:?archive.tar.bzip2!" !&

The result was archive.tar.bzip2
I can open this with windows 7-zip fine.
Then I try the script mentioned above to untar|zip it using this:
tar -xvzf --directory="!?&Extract to which directory:?.!" "!"


I get the following error:
Command 'tar -xvzf --directory="." "archive.tar.bzip2"'

failed with return code 2 and error message
tar (child): --directory=.: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: archive.tar.bzip2: Not found in archive
tar: Error exit delayed from previous errors.
minorgod

Re: Commands to Decompress TGZ archive

That's probably it...from the Linux docs I read, it wasn't too clear.
martin

Re: Commands to Decompress TGZ archive

There should be some switch before the destination path, should not? Like:
tar -xvzf --directory="!?&Extract to which directory:?.!" "!"
minorgod

Commands to Decompress TGZ archive

Extract to current directory:
tar -xvzf "!"

Extract with Prompt for target directory:
tar -xvzf  "!?&Extract to which directory:?.!" "!"

The prompt is set to default to the current directory, but I'm not sure the syntax is correct because it's not working when I specify a "." for the current directory. Maybe I'm missing something?