Re: SCP & Delete

2007-02-06 Thread Preston Hagar

On 2/6/07, Chuck Swiger <[EMAIL PROTECTED]> wrote:
>
> On Feb 6, 2007, at 3:12 PM, Don O'Neil wrote:
> > How do I delete a file after I've copied it with SCP? Is there some
> > sort of
> > secure 'rm' command?
>
> Use "rsync --delete" via SSH.  (Danger!  Slippery when wet!  Use with
> caution.)
>
> --
> -Chuck


I am not sure the rsync --delete is what the OP intended.  rsync --delete
will delete the file on the remote location if it no longer exists in the
source location.  The OP wanted to, as I understood it, delete the file from
the source location after it was copied to the remote location.  Probably
the best bet would to be to have a script scp the files, do some sort of
verification that they made it intact, and then do an ssh [EMAIL 
PROTECTED]"/path/to/file" as suggested earlier.

HTH,

Preston



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SCP & Delete

2007-02-06 Thread Chuck Swiger

On Feb 6, 2007, at 3:12 PM, Don O'Neil wrote:
How do I delete a file after I've copied it with SCP? Is there some  
sort of

secure 'rm' command?


Use "rsync --delete" via SSH.  (Danger!  Slippery when wet!  Use with  
caution.)


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SCP & Delete

2007-02-06 Thread Josh Carroll

How do I delete a file after I've copied it with SCP? Is there some sort of
secure 'rm' command?


ssh [EMAIL PROTECTED] 'rm /full/path/to/file'

Should work. There's no srm (secure rm), you simply ssh to the machine
and give it the command to execute.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SCP & Delete

2007-02-06 Thread youshi10

On Tue, 6 Feb 2007, Don O'Neil wrote:


How do I delete a file after I've copied it with SCP? Is there some sort of
secure 'rm' command?


ssh allows you to execute many commands, one being rm. Example:

ssh [EMAIL PROTECTED] "rm /full/path/to/file";

There's also gftp which can use ssh / sftp if you like GUI.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"