It's all about the answers!

Ask a question

Linux cp -f command is not getting executed in RTC Build Definition


madhan kumar (112) | asked Jun 16 '17, 5:14 a.m.

 Build is happening in Linux server. We usually request build from Windows RTC Eclipse client 


and it invokes the commands on Linux Server internally. The  ls -l  command is working fine 

but the command cp -f is not getting executed. Please provide solution if you have already 

faced this issue.


in RTC Eclipse Client 
Builds-->Test_Build-->Build Definition-->"CommandLine" Tab--> "Command" field -- here in 

this field if we give cp -f command it is not invoking. Please help


Comments
Donald Nong commented Jun 16 '17, 5:43 a.m.

How can you tell it is not invoked? What if it has been invoked but failed?


madhan kumar commented Jun 16 '17, 5:52 a.m.

 Thanks Donald, I was confused it is actually getting failed, the execution stops at initial stage for CP command but for ls -l command it takes reasonable time to run the build and that too successful. Please help


Alan Sampson commented Jun 16 '17, 11:31 a.m.
JAZZ DEVELOPER

Have you checked permissions? Does the build user have the appropriate rights to copy the file to the target directory?

Did you try the operation outside of the build?


madhan kumar commented Jun 19 '17, 5:19 a.m.

 Hi Allan,

 
on the linux machine if we login and manually execute this command it is working fine but when we are executing the command from Eclipse clinet(Winodws RTC build) it is not happening. If it is a permission issue on the linux machine, manual execution also should not happen right? bit confused. Please help


Lakshmi Narasimhan T V commented Jun 19 '17, 6:33 a.m.
JAZZ DEVELOPER

The cp -f command runs in the context of the machine user who runs the JBE process. Did you try to manually execute the command as the machine user who owns the JBE process?

Be the first one to answer this question!


Register or to post your answer.