Hi 2009/10/16 Xu, Qiang (FXSGSC) <[email protected]>: >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Michael Wood >> >> See the "-Q" option in the curl man page and try it with the >> "--libcurl" option. > > I want to delete the file ~/scan/test.txt, but: > =================================================== > q...@durian(pts/1):~/opensrc/curl-7.19.6/src[110]$ ./curl -v -u qxu:fair123 > -Q rm sftp://13.198.98.190/~/scan/test.txt [...] > curl: (21) Syntax error in SFTP command. Supply parameter(s)! > * Closing connection #0 > =================================================== > Anything wrong in the parameter to the option -Q?
I have never used the -Q option myself, but I believe you need something like this: curl ... -Q "rm /path/to/test.txt" sftp://... -- Michael Wood <[email protected]> ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
