Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
|
NAnt For discussing the NAnt .NET build tool. When posting a question, please specify the version of NAnt you are using.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the NAnt section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2007, 07:12 AM
Registered User
 
Join Date: Oct 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default copy file or folder to remote machine using nant

hi ,
i am using <scp > to copy file to remote machine.
I have written the code given below.

<scp file="c:\Rapport4.rar" server="192.168.0.62" basedir="Rapport4" user="administrator" verbose="true" failonerror="false"/>

output:

C:\>nant -f:checkout.build
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/checkout.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: checkout

      [scp] Starting 'scp ( Rapport4.rar [email protected]:~/Rapport4.r
ar)' in 'c:\'
      [scp] C:\checkout.build(16,3):
      [scp] 'scp' failed to start.

checkout:


BUILD SUCCEEDED - 1 non-fatal error(s), 0 warning(s)

Total time: 0.1 seconds.

please reply as early as possible.

if we csn use any other command for this please tell me.

Thanks & Regards,
Kalpana Agarwal
 
Old October 9th, 2007, 09:27 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I see you are trying to copy to a local network address. Why use the scp task instead of the regular copy task?

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Retore Db from a remote machine to a local machine srkvellanki BOOK: Beginning SQL 0 October 3rd, 2008 05:17 PM
how to connect to remote machine using nant kalpana2009 NAnt 0 October 8th, 2007 07:25 AM
Create/Upload a file on a Remote Machine SmboInc C# 2 November 20th, 2006 12:42 PM
Copy from one machine to another machine somnath.kartic SQL Server 2000 2 January 12th, 2006 03:13 PM
How to start an EXE on remote machine Nalin General .NET 0 February 24th, 2005 05:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.