Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by salva (Abbot)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057692]
help
Chatterbox?
[robby_dobby]: marto: Oh, I see you're from an even colder north :-)
[robby_dobby]: marto: Ldn, right now
[marto]: icy here today, snow on the hills
[Corion]: Oh yes, Friday!
[Corion]: Last day at $work before 3 weeks of vacation (well, not that I'd be really travelling, but no-work-time ;) )
[robby_dobby]: marto: yeah, I'd eventually visit Glasgow some day - just to visit the home town of GHC :-)
[robby_dobby]: Corion: Oh, that's awesome! Your timing is perfect enough to see all hell break loose when you get back at work :P
[marto]: well, let me know in advance, I'll buy you a pint :)
[Corion]: robby_dobby: No, I'm returning in the second workweek of January. The main hectic parts are in the first days after the start of the new year
[robby_dobby]: marto: and, I'm not sure I'd be around here long enough for YAPC::EU

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-12-15 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (431 votes). Check out past polls.

    Notices?