Run Pajek from command line

Subject:   	[Pajek] Is there a catalog of Pajek commands?
From:   	"Warren Pettey" <Warren.Pettey@hsc.utah.edu>
Date:   	Fri, March 15, 2013 21:41
To:   	"pajek@list.fmf.uni-lj.si" <pajek@list.fmf.uni-lj.si>

I've read on the Pajek web site that there's no current way to run Pajek from the
command line, but that it is possible to modify the session .log files to automate
some processes (as described here:
http://vlado.fmf.uni-lj.si/pub/networks/pajek/howto/execute.htm).  I've used this
process to build scripts, and it works well.  My question is whether there's a
catalog or list of these commands available.  I can gather these commands by
reviewing how they're used in the session .log files, but it'd be nice if there was
a list or catalog of the commands.

Are there any updates to the process beyond what's described at the web page link
above?

Warren Pettey

In latest version of Pajek (3.10) you can run Pajek from command line by providing file with commands as parameter, e.g.:

pajek c:\logfiles\mylogfile.log

or (in case of spaces in pathname)

pajek "c:\Program Files\logfiles\mylogfile.log"

If you want to be sure that Pajek will use some special settings (e.g. settings you select in Options/ReadWrite, colors, sizes,…) you should (when running Pajek as a batch) provide the settings file as parameter as well, e.g.:

pajek c:\logfiles\mysettings.ini c:\logfiles\mylogfile.log

Pajek uses extension to recognize what information is stored in a file (e.g. *.INI for ini (settings) file, *.LOG for commands, *.NET for networks…) Last settings used by Pajek are always stored when you exit pajek to file pajek.ini, but you can manually load or save settings to your 'local' INI files using File/IniFile/… All files can also be draged&dropped directly to Pajek windows as well (Pajek 3.10).

There is a list of commands which are used for drawing available in macro. For the rest of commands (there are many - each menu option produces a distinct log command) your approach is the same as mine: execute commands, and modify the obtained log file…

Andrej

pajek/hints/run2.txt · Last modified: 2015/07/29 03:39 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki