Hi Guys,
I have just started working on Robot and have very little idea of python too.
So I created a shell script to complete my task on a linux system.
When I execute the script on the linux system itself , it works flawlessly .
But when I try using Robot I am unable to retrieve any information ( I used Run Process , Execute Command , Start Process etc ) in each case I get either "command exited with return code 127" or "command exited with return code 1"
Ill just put in what I have written on ride
1st CASE
open connection 1xx.xxx.xx.xx
Login user passwd
${result} = Run Process fillrcv.sh argument shell=true
Should Be Equal ${result.stdout} SUCCESS for(text i need in the result)
OUTPUT
20171013 18:01:15.755 : INFO : Waiting for process to complete.
20171013 18:01:15.896 : INFO : Process completed.
20171013 18:01:15.896 : INFO : ${result} = <result object with rc 1>
20171013 18:01:15.911 : FAIL : != SUCCESS for
Ending test: AUTOMATION THROUGH ROBOT.Wte
Another case
open connection 135.249.91.13
Login ainet ainet1
Execute command fillrcv.sh c
OUTPUT
20171013 18:11:08.890 : INFO : Executing command 'fillrcv.sh c'.
20171013 18:11:08.906 : INFO : Command exited with return code 127.
Ending test: AUTOMATION THROUGH ROBOT.TC2
Not sure , what to do .. I was unable to find how to use environment variable , so I included the base path for all in built commands like grep sed awk etc. but to no avail .
I have been trying things for almost a week now.
Could you please help?
Regards,
Sahil