I have a requirement to copy files from a temporary file directory to a unix file system using scp. Please provide me a sample code for this

And where does java come into ur requirement? are you copying from windows to unix or unix to unix; there are ways to do this without java but if you want to use java then look at this api jSch

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.