Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: SCP session

by TechFly (Scribe)
on Nov 10, 2011 at 20:52 UTC ( #937459=note: print w/replies, xml ) Need Help??

in reply to Re: SCP session
in thread SCP session

The old script uses a lot of logic to determine the files to move. They have chosen to use the same directory for many file transfers and use trigger files to choose what to move to where. I cannot do a recursive. The best I could do is to create my own file structure, move the files into them, recursively copy, and then return the files to the original location, if they need to be there (sometimes they do, sometimes they don't).

I may just go with installing the Net::SFTP::Foreign and telling them to deal with it, but I wanted to explore other options first. I don't like the outcome of this option as it will be some fights, and I like to save that for when I really need to.

Either way, it is good to know a bunch of ways to do things

Replies are listed 'Best First'.
Re^3: SCP session
by Eliya (Vicar) on Nov 10, 2011 at 20:59 UTC

    Reasonably modern ssh versions support a "master mode" (-M), which allows you to set up a master connection that you can then reuse with subsequent regular repeated scp calls. (When done, you'd close the master connection with "ssh -O exit user@host")   Maybe that would be an option?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://937459]
[LanX]: I told you the story about the “new" currency trading system of Dresdner Bank
[LanX]: ?
[Corion]: No, or I don't remember the story ;)
LanX my favourite don't tell me the proof of concept is good enough for production anecdote
[ambrus]: ah, it's one of thos
[Eily]: what, there's a difference between proof of concept and production?
[LanX]: 20 years ago traders were complaining about the latency of the trading system...
[ambrus]: I'm currently in the process of rewriting my proof of concept programs. They sort of developped organically as I was experimenting, so now I've got an ugly mess of multiple programs and one-liners held together by nothing. I'll have to rewrite them to som
[ambrus]: ething that's both cleanly organized and mostly automated.
LanX in train, bad connection

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (15)
As of 2017-03-29 11:47 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (350 votes). Check out past polls.