Session.pl

The purpose of Session.pl is to create a session file which specify sequence of execution and Session.pl will control what to execute next time.

Usage

To run next session one should type
Session.pl SessionFileName

Session File

Each line in Session file represents session.
First element in the line is the number. It means nothing, just a reference number for you. Than command which should be executed. For example:

1 ppsy xxx yyy
5 ppsy xxx1 yyy
3 ppsy xxx yyy1

First time script will execute first line (ppsy xxx yyy). Then when script evoked second time it will execute second line despite the fact that there is number 5. When script finishes execution it adds "|-> execution date" to the line just executed. Current version does not support comments, but for session which already executed and have date one could add comments after the date.

File Location

~mikle/tools/Session.pl
Description is available at http://www1.weizmann.ac.il/~katkov/tools/Session.html
or http://www.weizmann.ac.il/~katkov/tools/Session.html

Suggestions

I could suggest to have 2 files for each subject:
  1. Session file - contains description for each session
  2. General file - execute what is common for all sessions. For example: X gamma correction and something like this.

Examples

For each subject needed 2 files:
File "subj":File "Subj.ses":
xgamma -gamma 2.72
Session.pl Subj.ses
xgamma -gamma 1
1 ppsy xxx yyy
5 ppsy xxx1 yyy
3 ppsy xxx yyy1

Any Suggestions or needs are welcome.