Author Topic: Running atkpython without VNL  (Read 1897 times)

0 Members and 1 Guest are viewing this topic.

Offline tfpper

  • Regular QuantumATK user
  • **
  • Posts: 6
  • Country: au
  • Reputation: 0
    • View Profile
Running atkpython without VNL
« on: September 20, 2012, 05:12 »
Hi,

I am running atkpython in Windows using the command.

> atkypthon myscript.py > logfile.log

However, it seems that the logfile.log does not get updated until the job has finished.
Is there a way to update logfile.log at regular intervals as I would like to see the progress as the calculation may take a while.

I can see the log file (being updated as calculation progresses) when I launch the job using vnl. But I want to avoid this as there are other users who might want to use the vnl license.

Thanks.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5429
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: Running atkpython without VNL
« Reply #1 on: September 20, 2012, 09:34 »
The file is not written only at the end, but since you are piping the output to a file you don't see it in the terminal. This is normal redirection behavior (using the > operator). If you want to see the file while running you can use
Code
atkpython script.py | tee logfile.log
on Linux or in Cygwin, but due to caching the file will not be written continuously, but rather in chunks, so you will not see the progress bars like you expect perhaps. I usually use
Code
atkpython script.py > logfile.log &
tail -f logfile.log
again on Linux or in Cygwin. It's harder on Windows, but you can install Notepad++ (a great editor!) and open logfile.log there while ATK is running - the file will refresh automatically or you can do it manually (depending on preference).

Offline tfpper

  • Regular QuantumATK user
  • **
  • Posts: 6
  • Country: au
  • Reputation: 0
    • View Profile
Re: Running atkpython without VNL
« Reply #2 on: September 21, 2012, 02:37 »
Thanks for your quick reply.
Notepad++ is a great editor. I'm monitoring the log file using it now.