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
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
Thank you so much!! for giving precious time
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs