Net::SSH and STDIN / Pending jobs


Felipe Coury


I am writing a library that allows the user to run some commands over
SSH into a server and I have two problems right now:

1) The code get stuck whenever the executed code needs STDIN, it just
sits there. How can I indicate that my STDIN is not interactive using

2) When the user runs background jobs (like nohup
/etc/init.d/start-something &) the script just sits there as well,
waiting for jobs to finish.

Considering the script that is executed is a user input and, being so, I
don't have control over it, what would be the best way to avoid those 2

Thanks a lot!

Best regards,


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question