Hi all,
I came across a strange behavior while working on my automated backup-download script.
I use scp to download *.backup and . rsc files from my routers. On windows with pscp the syntax _file._ works fine, but on unix and linux machines I got the following error:
[root@pha /]# scp -i scp_dsa scp@192.168.0.1:/file.rsc ./scp/
file.rsc 100% 34KB 33.6KB/s 00:00
[root@pha /]# scp -i scp_dsa scp@192.168.0.1:/file.backup ./scp/
file.backup 100% 470KB 470.3KB/s 00:00
[root@pha /]# scp -i scp_dsa scp@192.168.0.1:/file.* ./scp/
scp error: /file.: no such file or directory!
[root@pha /]# scp -i scp_dsa scp@192.168.0.1:/file.* ./scp/
scp error: /file.: no such file or directory!
[root@pha /]# scp -i scp_dsa ‘scp@192.168.0.1:/file.*’ ./scp/
scp error: /file.: no such file or directory!
[root@pha /]# scp -i scp_dsa scp@‘192.168.0.1:/file.*’ ./scp/
scp error: /file.: no such file or directory!
[root@pha /]# scp -i scp_dsa "scp@192.168.0.1:/file." ./scp/
scp error: /file.: no such file or directory!
[root@pha /]# scp -i scp_dsa “scp@192.168.0.1:/file.*” ./scp/
scp error: /file.*: no such file or directory!
But when using the same syntax file.* between the two unix-like machines everything is ok.
Do I have to use anything special to get this working on the RouterOS platform?
Thanks
Michael