I know how to run a shell command in Ruby, for example:
%x[
But how to specify the directory to run this command?
Is there a similar workaround similar to subprocess.Popen in Python:
subprocess.Popen(r'c:\mytool\tool.exe', cwd=r'd:\test\local')
Thank!
ruby shell command
icn Apr 13 2018-12-12T00: 00Z
source share