Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Unable to connect to some SFTP servers using Perl::SFTP

by salva (Abbot)
on Apr 09, 2013 at 08:13 UTC ( #1027670=note: print w/replies, xml ) Need Help??

in reply to Unable to connect to some SFTP servers using Perl::SFTP

The bus error indicates that probably Net::SFTP, Net::SSH::Perl or some of their dependencies are not thread safe. The only way to solve that kind of problem reliably is, unfortunately, to find the broken module and to fix it.
  • Comment on Re: Unable to connect to some SFTP servers using Perl::SFTP

Replies are listed 'Best First'.
Re^2: Unable to connect to some SFTP servers using Perl::SFTP
by skylinedreamer (Novice) on Apr 09, 2013 at 08:45 UTC
    hm.. i dont have access to repair the modules. I guess i have to look into other options in tht case then :-)
      If you only need to run your script on Linux/Unix systems, then, consider using processes (via fork) instead of threads.
        I enabled forks as follows by using system call to create a new terminal to run each ftp/sftp connection in a seperate perl script. It's able to execute but I am having issues when my parameters(@fields) contain bracket. I am not able to pass parameters which contains bracket.
        unless (fork()) { system("xterm -T $fields[0] -e \.\/uploader\.pl $index @field +s"); exit(0); }
        Error msg
        sh: syntax error at line 1: `(' unexpected
        After executing the window closes automaticaly. Is there a way to make it halt until the user press a key to exit or so. I tried to have a  <> at the end of the uploader script. But doesn't help

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027670]
[Discipulus]: discutere in eatalian is neutral: but discutere with wife sounds implicitly negative..
[erix]: what's the offending signature?
[Discipulus]: 'give man a fish erix it sonds like a push towards omosexuality.. ;=)
[Discipulus]: see Re: from txt file to array erix
[erix]: yeah, I ask for the text (I don't see signatures)
[Discipulus]: dear brother karl has "Furthermore I consider that Donald Trump must be impeached as soon as possible" in his sig

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-06-22 12:29 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (519 votes). Check out past polls.