I have problems with the simplest script. It seems I cannot run the script create-mrtg mentioned in this How-To:
http://sme.swerts-knudsen.dk/howtos/howto_6.htmThe script (active lines) looks like this:
****
#!/bin/bash
mkdir -p /home/e-smith/files/ibays/mrtg/html/$1
perl /usr/bin/cfgmaker public@$2 --global "workdir: /home/e-smith/files/ibays/mrtg/html/$1" --output /etc/mrtg/$1.cfg
perl /usr/bin/indexmaker /etc/mrtg/$1.cfg > /home/e-smith/files/ibays/mrtg/html/$1/index.html
echo "/usr/bin/mrtg /etc/mrtg/$1.cfg;" >> /etc/mrtg/all-ip
****
And I execute with this command: "./ create-mrtg server localhost
I get this error: bash: ./ is a directory
How do I get on with this How-To?
Earlier today I made another script starting with : "#!/bin/bash" and run this flawlessly.
Thanks for any input
Morten