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.
Any ideas?
Thanks,
TJ
If you were to replace
/home/myotherdomain/bin/graphing/vertical-bar-graph.php?dbinfo=%2Fhome%2Fmydomain%2Fdbinfo.txt
with
/home/myotherdomain/bin/graphing/*dbinfo.txt "/home/myotherdomain/www/io-total.png"
It will most likely work...
Items such as %2Fhome%2 need to be escaped with \