Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rubyのnet-sshライブラリを使用してシェルコマンドをリモートで実行しています。単にSCP/SFTP経由で転送するのではなく、いくつかのファイルをメモリに読み込みたいのですが。これはできますか?
wcまたはlsを使用してサイズを見つける場合は、catを使用してデータを取得し、適切なバイト数を読み取ることができます。