Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: bakedjake
wget -q www.mydomain.org/vertical-bar-graph.php?dbinfo=/home/mydomain/dbinfo.txt&config=/home/mydomain/config.txt
That bit works fine, so I have the file, now I want to move and rename it:-
mv "/home/myotherdomain/bin/graphing/vertical-bar-graph.php?dbinfo=%2Fhome%2Fmydomain%2Fdbinfo.txt" "/home/myotherdomain/www/io-total.png"
That mv doesn't work - I get a "File or directory doesn't exist" error. Oddly, if I copy that line out of the shell script and paste it to the command line proper, it works fine.
I wonder if it's something to do with all the %2f etc stuff in the filename?
I have tried it with and without both double and single quotes.
If you were to replace
It will most likely work...
Items such as %2Fhome%2 need to be escaped with \