Scripting RM and not get prompted
Im trying to remove the contents of my root SFTP directory before I upload a new file. Unfortunatly it promts me to say Y or N.
Here is a basic look at what im doing.
# Disable overwrite confirmations that conflict with the previous
option confirm off
# clear contents on SFTP server
rm *
# Upload the file to current working directory
put E:\upload\*.zip
Problem is the option confirm off does not appear to work for the "rm" command
Ive searched the documentaion and have not figured out how to accomplish this. Can anyone point me in the right direction?
Thanks in advacne.
Chris
Here is a basic look at what im doing.
# Disable overwrite confirmations that conflict with the previous
option confirm off
# clear contents on SFTP server
rm *
# Upload the file to current working directory
put E:\upload\*.zip
Problem is the option confirm off does not appear to work for the "rm" command
Ive searched the documentaion and have not figured out how to accomplish this. Can anyone point me in the right direction?
Thanks in advacne.
Chris