Dear Friends,
I have used system() command to invoke batch file using loadrunner.
The batch file is an executable batch file (Plink.exe) and I have
invoked it using the following command.
system("c:\\Plink.exe");
when I run the command using loadrunner the batch file flashes on the
screen for a second and closes, please help me in understanding that
how can I know that the batch file is running successfully or not.
Below given command is used to remotely execute the sql statements on
the DB server:
plink -l root -pw <root password> 10.2.201.144
export ORACLE_HOME=/u000/app/oracle/prod/
10.4.2.1/DB/ ;
export PATH=$PATH:/u000/app/oracle/product/
10.4.2.1/DB/bin;
sqlplus <connection string> @/tmp/<sql script name>
For the above command to execute on loadrunner I have created a batch
file with name sql.bat, which includes the above command and I am
executing is using system command.
system("c:\\sql.bat");
This is my understanding of executing a batch file using loadrunner,
please correct me if I am doing it wrong and suggest me the correct
method.
Any help in this regard is appreciated.
Regards,
Sahil