Re: find -mtime -1 | xargs scp ... user@remote:/dest/path

2002-09-29 Thread Alvin Oga
hi ya > > find -type f -mtime -1 | tar cvf /tmp/x.tgz -T - > > most delightfully cool! and without a great deal of hair, even. > > you'd think i might consider tar after all this time, but n. > > > scp /tmp/x.tgz user@host:dir && "untar it locally and automatically" > > that shouldnt

Re: find -mtime -1 | xargs scp ... user@remote:/dest/path

2002-09-29 Thread will trillich
On Sun, Sep 29, 2002 at 08:52:54PM -0700, Alvin Oga wrote: > On Sun, 29 Sep 2002, will trillich wrote: > > sadly, there are spaces and apostrophe's (windo~1 files, of > > course) -- and there's a possibility that the resulting list > > from the `find` command might overflow the command buffer as >

Re: find -mtime -1 | xargs scp ... user@remote:/dest/path

2002-09-29 Thread Alvin Oga
On Sun, 29 Sep 2002, will trillich wrote: > On Sun, Sep 29, 2002 at 06:02:53PM -0500, Michael Heironimus wrote: > > On Sun, Sep 29, 2002 at 10:19:03AM -0500, will trillich wrote: > > > xargs -i# command # suffix > > > > Since # is almost always a shell metacharacter, it's not surprising that

Re: find -mtime -1 | xargs scp ... user@remote:/dest/path

2002-09-29 Thread will trillich
On Sun, Sep 29, 2002 at 06:02:53PM -0500, Michael Heironimus wrote: > On Sun, Sep 29, 2002 at 10:19:03AM -0500, will trillich wrote: > > xargs -i# command # suffix > > Since # is almost always a shell metacharacter, it's not surprising that > this doesn't work. Try using an alpha sequence, wh

Re: find -mtime -1 | xargs scp ... user@remote:/dest/path

2002-09-29 Thread Michael Heironimus
On Sun, Sep 29, 2002 at 10:19:03AM -0500, will trillich wrote: > xargs -i# command # suffix Since # is almost always a shell metacharacter, it's not surprising that this doesn't work. Try using an alpha sequence, what I usually use is "xargs -iXXX foo XXX bar". By the way, if you're absolu

Re: find -mtime -1 | xargs scp ... user@remote:/dest/path

2002-09-29 Thread patrick
--- will trillich <[EMAIL PROTECTED]> wrote: > quick question on xargs -- > > how can you have xargs work with something like scp? the FINAL > arg to scp needs to be the destination; is there a way? > > find . | xargs cmd > > does the same thing as > > cmd ./file1 ./file2 ./file3 .

find -mtime -1 | xargs scp ... user@remote:/dest/path

2002-09-29 Thread will trillich
quick question on xargs -- how can you have xargs work with something like scp? the FINAL arg to scp needs to be the destination; is there a way? find . | xargs cmd does the same thing as cmd ./file1 ./file2 ./file3 ./file4 but i need it to do something like cmd ./fil