Thanks everyone.> Date: Wed, 26 Nov 2008 11:16:00 -0800> From: [EMAIL
PROTECTED]> To: user@ant.apache.org> Subject: Re: SCP and SSHExec tasks> > The
scp task will not create remote directories. Also, there is no recursive>
option. Yes, you can specify a fileset, but the directory structure will not>
be preserved (as far as I know). If you are moving a bunch of files and want>
to preserve the directory structure, the best thing to do is...> > 1. zip or
tar.gz the files locally> 2. scp the archive to the remote machine> 3. sshexec
to remote machine and unpack the archive> > -Rob Anderson> > On Wed, Nov 26,
2008 at 3:36 AM, Steve Loughran <[EMAIL PROTECTED]> wrote:> > > Rez wrote:> >>
>> Hi> >> Is it possible to create the directories on the remote server on the
fly> >> as the scp ant task is executed or do I need to run sshexec to create
them> >> first?> >>> >>> >> > I use sshexec first, with a mkdir -p as the
command. I also have a couple> > of presetdef definitions to simplify making
commands> >> > <presetdef name="rpmssh">> > <sshexec host="${rpm.ssh.server}">
> username="${rpm.ssh.user}"> > passphrase="${rpm.ssh.passphrase}"> >
trust="${rpm.ssh.trust}"> > keyfile="${rpm.ssh.keyfile}"> >
timeout="${ssh.command.timeout}"> > />> > </presetdef>> > <presetdef
name="rootssh">> > <rpmssh> > username="root"> >
timeout="${ssh.rpm.command.timeout}"> > />> > </presetdef>> >> >
---------------------------------------------------------------------> > To
unsubscribe, e-mail: [EMAIL PROTECTED]> > For additional commands, e-mail:
[EMAIL PROTECTED]> >> >> > > -- > Rob Anderson> [EMAIL PROTECTED]
_________________________________________________________________
Proud to be a PC? Show the world. Download the “I’m a PC” Messenger themepack
now.
hthttp://clk.atdmt.com/MRT/go/119642558/direct/01/