cat > /tmp/temp.sh
chmod +x /tmp/temp.sh
The RP-AX58 is marketed as a Range Extender/ AiMesh Extender. Its possible there are certain modules are missing which may lead to the error you saw with WinSCP. Its also possible that unlike with the Asus routers, you might not be able to copy files to the unit or execute scripts.I tried WINSCP to transfer the file which is 3KB, but I get the following error
It would help if you provided the router make/model and firmware it's running.Is there a way to maybe run the script on my main router, and grab the variables via SSH as part of that script?
The mesh node is an RP-AX58 the FW version is 3.0.0.4.388_24654It would help if you provided the router make/model and firmware it's running.
PS: When you copied the script to the extender did you check and or change the permissions of the script file so it could be executed? Maybe if you posted the script file people can review it to see if there are any issues.
Can you elaborate on this? It looks like it is cat-ing (nothing) to a file on the router.cat > /tmp/temp.sh
I tried WINSCP to transfer the file which is 3KB, but I get the following error
Can you elaborate on this? It looks like it is cat-ing (nothing) to a file on the router.
cat << 'EOF' > /tmp/temp.sh
#!/bin/sh
<issue some bash commands>
EOF
chmod +x /tmp/temp.sh
ssh user@ip-address 'sh -s' << 'ENDSSH'
cat << 'EOF' > /tmp/temp.sh
#!/bin/sh
<issue some bash commands>
EOF
chmod +x /tmp/temp.sh
ENDSSH
cat ~/some-local-script.sh | ssh user@ip-address 'cat > /tmp/temp.sh && chmod +x /tmp/temp.sh'
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!