on 12-20-2006 6:01 PM
Hi,
We have a requirement for a unix command to unzip tar files from one of our directory. We have created a command in sm49 and when i execute it from sm69, it shows the files are unzipped, but doesnt put the files in the same directory, instead puts it in /usr/sap/SID/DVEBMGS<>/work.
The command i am using is: tar
parameter: -xvf
additional parameter: /<path to file>.
Is there some setting that has to be changed or the command has to be used differently?
Thanks in advance
Cyrus
Hi cyrus,
Try this:
tar -xvf <filename> -C <DIR>
For more options of tar check the man pages or check this url.
http://unixhelp.ed.ac.uk/CGI/man-cgi?tar
Hope that helps,
Regards,
Siddhesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
\local directory for sap is work directory since DIR_HOME=
work directory
Samart
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.