displaying home parm value in SFTP log files

I would like to be able to print the value contained in the "HOME" parameter in SFTP log files.  Is there any way to do this and therefore know the exact location of a file, instead of having to decipher the "HOME" parameter?

Here's an example of a printout log.

2017-01-10 07:31:11 Parameters:

2017-01-10 07:31:11   Remote UserId =       ITIS_FI_ADMIN_SFTP

2017-01-10 07:31:11   Remote Host =         erpftp.tosm.ttu.edu

2017-01-10 07:31:11   FTP Command =         put

2017-01-10 07:31:11   Local Path =          /u01/app/sct/dataload/BANK_RECON/

2017-01-10 07:31:11   Local File/Pattern =  hsc_bank_recon_tape_20170110.txt

2017-01-10 07:31:11   Remote Path =         /HOME/BankRecon/    ç====================  I’d like to be able to know what “HOME” stands for and print it

2017-01-10 07:31:11   Remote File/Pattern = HSC_BANK_RECON_TAPE_20170110073111.txt

2017-01-10 07:31:11   File Type =           ascii

2017-01-10 07:31:11   Compression =         N

2017-01-10 07:31:11   Minimum Run Time =    0

2017-01-10 07:31:11   Maximum Run Time =    0

2017-01-10 07:31:11 known_hosts file = /home/appworx_ttusprd/.ssh/known_hosts

2017-01-10 07:31:15 cd to - /HOME/BankRecon/ done

Is there any command that I can use to print this value out as part of this job log?


Thanks,


Doug Bell

Texas Tech

doug.bell@ttu.edu

Sign In or Register to comment.