Skip to content
Advertisement

How to convert a directory of XML files in to RRD Files

I need to restore rrd files from my exisiting xml files. So I have used following simple bash script.

JavaScript

I could not execute following script due to this error,

JavaScript

But I could restore files one by one. Can someone help me to solve this?

Advertisement

Answer

When you use:

JavaScript

You will see that $i equals:

  • /home/dump_xml/a.xml
  • /home/dump_xml/b.xml

You see, it contains the path. Therefore your rddtool will try to write the results in /home/dump_xml/home/dump_xml/a.rrd.

You have to do:

JavaScript

Do not forget to double-quote your variable extensions.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement