Skip to Content
avatar image
Former Member

OS Command Issue

Hi,

I have a file to proxy scenario where I need to pick some ZIP file with .gz extension.

I have tried to use PayloadZipBean but its not fulfilling my requirement.

As I am not getting any help using PayloadZipBean, I have decided to write an command line argument in the before processing section.

Initially I am picking the file using NFS. File is in the following folder -

/sapmnt/NDX/global/TEST/abc.dcu.gz

I have written a simple shell script gunzip *.gz and saved it as Unzip.sh and put it in the following path -

/sapmnt/NDX/global/TEST/Unzip.sh

I have written in the before processing of CC as /sapmnt/NDX/global/TEST/sh UnzipGz.sh


Though it was working in PUTTY while testing but its not working here .

Any help ....

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jan 17, 2014 at 11:47 AM

    Hi Apu

    write:

    /sapmnt/NDX/global/TEST/sh/UnzipGz.sh


    Regards

    GB

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 17, 2014 at 12:05 PM

    hi Apu,

    as per my understanding u need not give sh before UnzipGz.sh

    /sapmnt/NDX/global/TEST/sh UnzipGz.sh

    Instead try

    /sapmnt/NDX/global/TEST/UnzipGz.sh

    secondly check for permissions of the file and

    thirdly try moving the file to PI server file system first and then run the script it might work.

    http://scn.sap.com/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi

    hope this helps.

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded