cancel
Showing results for 
Search instead for 
Did you mean: 

sm69/sm49

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185954
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

\local directory for sap is work directory since DIR_HOME=
work directory

Samart

Former Member
0 Kudos

I think it´s better you unzip directly into operating system, use the same command

regards,

Cristiano