Ruby linux commands on FTP

How to run linux commands on FTP server using ruby code?

cmd = ‘ls /home/username’
system(cmd)

If you want to capture the output of the command into a variable look at Open3

1 Like

Thank you so much!! for giving precious time