Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
more useful options
 
PerlMonks  

Re: Net::OpenSSH: Trouble accessing a mount point mounted via the perl script

by salva (Monsignor)
on Oct 10, 2013 at 07:41 UTC ( #1057692=note: print w/ replies, xml ) Need Help??


in reply to Net::OpenSSH: Trouble accessing a mount point mounted via the perl script

open_ex is a low level method. It starts the remote command and returns the file descriptors attached to its IO streams. Then you have to handle the IO and the finalization of the process. Don't use it unless you understand how it works.

For common SSH operations there are easier to use, higher level methods such as capture or system which run commands synchronously, or if you want to run a command asynchronously spawn.

I guess the issue here is a race condition because you are mounting the share asynchronously and CIFS is slow at setup.


Comment on Re: Net::OpenSSH: Trouble accessing a mount point mounted via the perl script
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-04-16 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (434 votes), past polls