Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Downloading files from Unix server
#1
Solved: 11 Years, 3 Months, 3 Weeks ago MyBB 
Recently, i came across a situation were in i have download the log files from UNIX server and validate the logs using QTP.

I thought it will be helpful to the fellow members as well.

Below are the steps to be followed to download the file from UNIX server,

Step 1: Open notepad, type the following and save it as a text file(Say downloadfromunix.txt)
Code:
Open 'name of the server'
username
password
cd 'path were the file to be downloaded is present'
get 'name of the file' 'file name with which it will be saved in your system'
bye

E.g.:
Open ABC1234
elango
elango@123
cd /apps/ki01/logs
get systemout.log output.log
bye

In the example above, the systemout.log file will be downloaded and as output.log

Step 2:
Code:
* open command prompt(Start -> Run -> cmd)
* go to the location were the text file is saved (E.g.: If it is saved in d:\unix, type "cd d:\unix" in the command prompt)
* type ftp -s:downloadfromunix.txt
* the file named output.log will be downloaded and saved in "d:\unix" folder

If you feel that opening command prompt every time is a hassle,
Code:
* open notepad
* type ftp -s:downloadfromunix.txt
* Save it with .cmd as extension (e.g.: downloadfromunix.cmd)
* Ensure that both downloadfromunix.cmd and downloadfromunix.txt files are present in the same location
* Double click on the downloadfromunix.cmd file
* It will open command prompt and will download the file to the folder in which downloadfromunix.cmd and downloadfromunix.txt files are present

Hope it helps.

Thanks,
Elango
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to click the save button in Save As window while downloading from SAP kathirvelnagaraj 0 2,457 08-25-2015, 07:37 PM
Last Post: kathirvelnagaraj
  How to find a file after downloading UFT_Newbie 1 2,962 09-18-2014, 08:43 PM
Last Post: UFT_Newbie
  Connect QTP 10.0 with Unix phabloxar 1 3,407 09-20-2012, 09:32 PM
Last Post: phabloxar
  How to read a unix flat file from a unix server using QTP vinayjames.b05 3 9,550 06-18-2012, 11:12 PM
Last Post: gunaseakaran
  How to Interact Unix through QTP Hema 4 16,864 03-10-2011, 11:47 AM
Last Post: KVK

Forum Jump:


Users browsing this thread: 1 Guest(s)