I am trying to run a command from a ruby script. I am stuck in changing the folder path. Below is the command I wrote. Can someone let me know how to go next?
system("cd /home/user/Source/pxe/")
I want the terminal to point to the folder pxewhen I run the ruby script. Is the code correct? If not, can you tell me which is the right way to invoke a command cdfrom ruby script?
source
share