Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 9th, 2007, 07:12 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
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 administrator@192.168.0.62:~/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
Reply With Quote
  #2 (permalink)  
Old October 9th, 2007, 09:27 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.