Re: How to do an rm through ssh




Unruh wrote:
Why the -s?
Why all of the arguments?

Well, the -s turned out to be in excess. The rest, I'm afraid, are
needed.

However I have no idea what would happen on a Windows machine. rm is not a
windows command, - is not the windows argument designator.

Well... it's Windows + Cygwin, so it counts almost like *IX. Cygwin is
kinda a UNIX emulator for Windows, and OpenSSH runs inside it, so it's
kind of in Unix. From the cygwin environment /cygdrive/c is your C:
drive, etc...

Yes, rm -fr ... is NOT a subsystem ( whatever that is.)

Yes, Richard Silvermans post made me see why.


scp -i /root/.ssh/some_user-identity -P XXX todays_backup.tar.gz \

some_user@xxxxxxxxxxxxxxx:/cygdrive/d/backup/$day_of_week

What does -P XXX mean? that is not an option under openssh.

Well... scp uses -p for "preserve permissions", so it uses -P for the
port number.
The server listens on an exotic port number to add a bit of security
through obscurity.

What's wrong?

Too rococo a command line?

Hahahahaha! Yes, probably. But in the end, I did pull it off

Thanks for your comments. I do appreciate them.
Regards:

Wences

.



Relevant Pages

  • RE: Windows Command Processor CMD.EXE Buffer Overflow
    ... It didn't work on Windows Server 2003 or Windows 2000 either. ... Windows Command Processor CMD.EXE Buffer Overflow ... La informacion contenida en este mail y sus anexos es ... confidencial y/o privilegiada y esta reservada para el destinatario ...
    (Vuln-Dev)
  • Re: blanks in filenames
    ... the Windows command ... > opens a DOS-Shell - ... > gives me an error message: 'c:\my' could not be found..... ...
    (comp.lang.tcl)
  • Re: Path Separator and Windows
    ... Even if the Windows API accepts a /, \ is standard for the Windows command line and executing commands with / in paths passed as args fails. ... a Unix clone. ... DOS 1.x was a CP/M clone, which in turn was a something-by-DEC clone. ...
    (comp.lang.ruby)
  • Re: fdups: calling for beta testers
    ... > Typing that on Windows command line doesn't produce a useful result ... Windows user, and I haven't given that much thought. ... Bill also thinks it is normal that half of service pack 2 lingers twice ... I did not give Windows users much thought. ...
    (comp.lang.python)
  • Re: Path Separator and Windows
    ... Even if the Windows API accepts a /, \ is standard for the Windows command line and executing commands with / in paths passed as args fails. ... I don't want to argue with any Windows users, this is just light-hearted jibing about a light-hearted OS;> Used to use DOS myself, time in the trenches, jumpers for goalposts, etc.) ...
    (comp.lang.ruby)