[Ssh-sftp-perl-users] Net::SSH::File->read problem
Brought to you by:
dbrobins
From: Cole T. <col...@gm...> - 2007-02-09 14:55:17
|
Hi all - I'm having an interesting issue with trying to read a file across an sftp connection. Namely, if I try to call ->read on a file that I open across the sftp connection, the connection no longer seems to be available for other traffic. I've attached a small sample script to demonstrate (the equivalent of) what I'm trying to do. The idea is that, after getting a file listing, I'm trying to read in each file that passes a certain regex. The problem is that after the first read in, all subsequent stats calls (or read calls, if I were trying them) fail with a "Resource temporarily unavailable" in $!. The interesting bit is that if I remove the read call on line 38, it gets rid of the problem (even if I leave the ->open call in). Anybody have any thoughts? -- Cole Tuininga http://www.tuininga.org/ |