Now, this is driving me nuts. I thought I had this solved, but the problem persists.
Here's the line of code that is failing:
That copies an entire directory of JPEGs from a Pi 1 (rasp2 - wireless) to a Pi 4 (raspsky - wired). It has been working just fine, as is, for several years.
Here are the variables:Here's the error message:
Here's what happens when I run that exact line of code from the command line:
And this:
It all works perfectly. What am I missing here and how can I find out what's going wrong?
Here's the line of code that is failing:
Code:
pi@raspsky:~/webcam $ /usr/bin/scp -p pi@rasp2:$rjpeg/*.jpg $ipathHere are the variables:
Code:
pi@raspsky:~/webcam $ rhome=/home/pi/webcampi@raspsky:~/webcam $ rjpeg=$rhome/archpi@raspsky:~/webcam $ ipath="$home/koratkam/arch"Code:
Mon Jun 16 05:02:00 +07 2025 Copy KoratKam JPEGsssh: connect to host rasp2 port 22: No route to hostCode:
pi@raspsky:~/webcam $ /usr/bin/scp -p pi@rasp2:$rjpeg/*.jpg $ipathimage_000.jpg 100% 163KB 1.8MB/s 00:00image_001.jpg 100% 165KB 1.9MB/s 00:00image_002.jpg 100% 123KB 2.3MB/s 00:00image_003.jpg 100% 118KB 2.3MB/s 00:00<snip>Code:
pi@raspsky:~/webcam $ ping -c 3 rasp2PING rasp2 (192.168.0.62) 56(84) bytes of data.64 bytes from rasp2 (192.168.0.62): icmp_seq=1 ttl=64 time=1.63 ms64 bytes from rasp2 (192.168.0.62): icmp_seq=2 ttl=64 time=1.64 ms64 bytes from rasp2 (192.168.0.62): icmp_seq=3 ttl=64 time=5.87 ms--- rasp2 ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 6msrtt min/avg/max/mdev = 1.627/3.045/5.871/1.998 msIt all works perfectly. What am I missing here and how can I find out what's going wrong?
Statistics: Posted by Ratsima — Wed Jun 18, 2025 7:00 am