Multiwfn forum

Multiwfn official website: //www.umsyar.com/multiwfn. Multiwfn forum in Chinese: http://bbs.keinsci.com/wfn

You are not logged in.

#12024-04-30 13:07:07

b322qr
Member
Registered: 2024-04-30
Posts: 7

Issue with saving graph to image file using a batch script

I am trying to automate the process of generating an image file for DOS plots by using batch scripting. Below are the two files I am using, DOS.sh and DOS.txt. When I run the script, the DOS_line.txt and DOS_curve.txt files are generated as expected, but the image file containing the graph is not. How should I modify the script to output the image file in the current working directory?

DOS.sh
////////////////////////////////////////////////
#!/bin/bash
for inf in *.fchk
do
Multiwfn ${inf} /dev/null
mv -f DOS_line.txt ${inf//fchk}_line.txt
mv -f DOS_curve.txt ${inf//fchk}_curve.txt
done
////////////////////////////////////////////////

DOS.txt
////////////////////////////////////////////////
10
8
0
3
2
0
-10
////////////////////////////////////////////////

Offline

#22024-05-01 01:53:01

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 1,772
Website

Re: Issue with saving graph to image file using a batch script

Did you install noGUI version of Multiwfn? In this case, image cannot be saved. Otherwise, image should have been generated, and perhaps you didn't search it in correct folder. Please ensure that you can use the commands to properly generate the image file in the interactive mode before using the script.

Offline

#32024-05-01 12:01:30

b322qr
Member
Registered: 2024-04-30
Posts: 7

Re: Issue with saving graph to image file using a batch script

Ah, I see, I was using the noGUI version of Multiwfn. Thank you very much.

Offline

Board footer

Baidu
map