scp

how to use ssh from Windows cmd

How can I use ssh & scp from the Windows cmd.exe? I remember I installed a program in the past that let me do this but can't remember now what it was. (I don't mean putty) ...

scp all files starting with 'file' from a server

Hi, I use this command to copy all files whose names start with 'file' from a server. scp -vp me@server:/location/files* ./ But i got a 'No Match' error. probably Concerning the '' in the command. How can i protect the '' for ssh to understand that this refers to a list of files and not taking it as a filename. Thx August ...

Getting ANT to scp only new/changed files

I would like to optimize my scp deployment which currently copies all files to only copy files that have changed since the last build. I believe it should be possible with the current setup somehow, but I don't know how to do this. I have the following: Project/src/blah/blah/ <---- files I am editing (mostly PHP in this case, some st...

Publish Maven artifacts on FTP with Hudson FTP Publisher Plugin

I'm building a number of artefacts (zip files for different environments: test, dev) using the maven-assembly-plugin using a specialized Maven profile. These artefacts I want to copy/collect on on a FTP server keeping the version (01.07.10.16.Wed-1626) as a folder, so I need to copy from test/build/01.07.10.16.Wed-1626/ to ftp://my-ftp-s...

How to unload all the plugins from vim and change VIMRUNTIME ?

Hello my problem is this: I have an account at my hosting providers server and I can't install my own copy of vim. So the only personalization I can make is editing .vimrc in my account, but it won't suffice What I'd Like to do is: on startup I'd like to unload all the plugins and loaded stuff, and tell vim to use other folder as its' r...

Getting scp's status bar to appear in a Java window

I'm writing a program that uses scp to copy files in a bigger java program. As it stands now, the program freezes up while the scp is copying the file, which can take a few minutes, so I'd like to be able to display the progress of the scp or at the very least get the terminal window with the scp progress to show up! Any suggestions? ...

ant scp task through a proxy

I am trying to make an ant build file to remote copy a war file. Ant scp task uses a jsch library for remote copying. How do I make it work through a proxy, the jsch library clearly supports it. does not work for jsch. Jsch does not read environment variables like http_proxy is there another solution ? ...

Free or commercial SCP library needed for .Net project

Hi there, I'm in the need for a SCP library (free or commercial) to be used in a .Net 3.5 project. I've already had a look at SharpSSH but it lacks the a couple of basic features (like enumerating all files in a remote directory). Do you know a good, solid and cheap library? ...

Check to see if file transfer is complete

We have a daily job that processes files delivered from an external source. The process usually runs fine without any issues but every once in a while we have an issue of attempting to process a file that is not completely transferred. The external source SCPs these files from a UNIX server to our Windows server. From there we try to pr...

Resume recursive scp transfer (with rsync?)

I was transferring several thousand files each ~1MB via scp and my connection was broken after the first 2k files or so. I wanted to know if there was a way to resume the recursive transfer w/o starting over. Something like $ scp -r [email protected]:/datafiles/ ./ ... Happy Transfer ... ... BREAK! ... $ rsync -P [email protected]:/datafile...

is there an scp/sftp client library available for flex?

I need to send files securely from Adobe Air. In any other language, my first thought would be sftp/scp, but I don't see any libraries to do that in Flex. I'm new to flex, so I'm not sure where to look for code examples and repos. It looks like the raw socket interface is available, so I could write one if no good examples exist. Of cou...

SCP a tar file using pexpect

Hello, I am using ssh to log into a camera, scp a tarball over to it and extract files from the tarbal and then run the script. I am having problems with Pexpect, though. Pexpect times out when the tarball is being copied over. It seem's not to wait until it is done. And then it start's doing the same thing with the untar command, The c...

how to get files as they are added to a remote server

I am using a bash script (below) on a remote server (so far using ssh to connect) to execute a python script that downloads a lot of pdf files one at a time (getting the download locations from a text file with the URL's) in a loop. I would like to move the files from the remote server to my local computer as they are downloaded, and th...

How do I scp the (huge) output of a command directly to a remote machine?

Note that I can't first store the file locally -- it's too big. This (obnoxious) page (scroll all the way to the bottom) seems to give an answer but I'm having trouble disentangling the part that's specific to tape drives: http://webcache.googleusercontent.com/search?q=cache:lhmh960w2KQJ:www.experts-exchange.com/OS/Unix/SCO_Unix/Q_2424...

How to get expect -c to work in single line rather than script

Hi I was wondering if anyone had any examples of how to use expect with -c. Running: my_machine~/opt/ams/data/ep/success$ expect -c "spawn /usr/bin/scp xmlEventLog_2010-03-22T14-28-36_PFS_1_2.xml [email protected]:/opt/ams/epf_3_4/xmlEventLog_2010-03-22T14-28-36_PFS_1277900174_2.xml; expect { '*password:*' { send 'ad'\r\n }}" Doe...

SCP from Windows using the colon-inclusive full path

Hey- I'm trying to run SCP on my Windows box through a batch file. I want to do something like: scp "C:\myfile.txt" user@host:path Of course scp thinks that "C" is my source host and "\myfile.txt" is my source path. I can't seem to find a way to escape the colon. These don't work: scp "C\:\myfile.txt" user@host:path scp "C::\myf...

How can I get SCP and ftp (from command line, not plugin) working within hudson

I am running hudson CI server on a win32 machine. After the build succeeds I want the exe created to be put on a public website. The hudon plugins for SCP and ftp were not working the way I wanted (mostly because it chooses some odd directories for where to place them) so I made my own script for a command line scp that hudson calls. ...

The @ in a for loop while using scp

Please take a look at this line: ${server_username}:${server_password}@@{server}:/tmp The double @@ causes problems. Instead of user:pass@server it displays as user:passserver and therefore is unable to connect to the remote ssh server. How do you tell ant to leave the @ be? This is my code: <for list="${externalLibs}" param="libra...

Uploading a File via SCP with Maven fails

I try to upload an ear created by maven to an application server using scp. When I tried to run mvn wagon:upload-single But I get the following error: [ERROR] Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:upload-single (default-cli) on project de.volkswagen.dps.ear: Unable to create a Wagon instance for nu...

How to wait for a task to complete before continuing shell script

I have two shell scripts to write that will be executed nightly via cron schedule. On my production server: mysqldump -ufoo -pbar --opt --routines db > ~/sqldump/{$todays_date}.sql ln -s ~/sqldump/{$todays_date}.sql latest.sql On my development server: scp [email protected]:~/sqldump/latest.sql ~/sqldump mysql -ufoo -pbar db < latest...