Net::SSH and STDIN / Pending jobs

F

Felipe Coury

Hi,

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
Net::SSH?

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
issues?

Thanks a lot!

Best regards,
Felipe.
 

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

Members online

No members online now.

Forum statistics

Threads
473,920
Messages
2,570,038
Members
46,449
Latest member
onedumbsquirrel

Latest Threads

Top