Skip to content

Commit

Permalink
Use bin and data directory heirarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
dkj committed Jun 6, 2014
1 parent b4f6d3d commit 76329c4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.vtfp
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ vtfp.pl

kl2@sf2-farm-srv1:~/projects/viv$ grep -v "^#" examples/example_06.vtf | tr -d "\n\t" > example_06_vtf.json

kl2@sf2-farm-srv1:~/projects/viv$ vtfp.pl -l ex06.log -q example_06_vtf.json
kl2@sf2-farm-srv1:~/projects/viv$ bin/vtfp.pl -l ex06.log -q example_06_vtf.json
KeyID Req Id RawAttrib
greetings_file required greetings_file name
intercept_file not_required intercept_file name

Preprocessing this, specifying only the required KeyID "greetings_file" gives:

kl2@sf2-farm-srv1:~/projects/viv$ vtfp.pl -l ex06.log -keys greetings_file -vals Hello.txt example_06_vtf.json
kl2@sf2-farm-srv1:~/projects/viv$ bin/vtfp.pl -l ex06.log -keys greetings_file -vals Hello.txt example_06_vtf.json

{
'nodes' => [
Expand Down Expand Up @@ -112,9 +112,9 @@ vtfp.pl

Preprocessing this, both substitutable parameters gives:

kl2@sf2-farm-srv1:~/projects/viv$ vtfp.pl -l ex06.log -keys greetings_file -vals Hello.txt -keys intercept_file -vals intercept.txt example_06_vtf.json
kl2@sf2-farm-srv1:~/projects/viv$ bin/vtfp.pl -l ex06.log -keys greetings_file -vals Hello.txt -keys intercept_file -vals intercept.txt example_06_vtf.json
or:
kl2@sf2-farm-srv1:~/projects/viv$ vtfp.pl -l ex06.log -keys greetings_file,intercept_file -vals Hello.txt,intercept.txt example_06_vtf.json
kl2@sf2-farm-srv1:~/projects/viv$ bin/vtfp.pl -l ex06.log -keys greetings_file,intercept_file -vals Hello.txt,intercept.txt example_06_vtf.json

{
'nodes' => [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/README.examples
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ For example:
grep -v "^#" example_01.cfg | tr -d "\n\t" > example_01_cfg.json

You can then use the viv script with this JSON file (if you are working from the examples directory):
../viv.pl -s -x -v 3 -o example_01.log example_01_cfg.json
../bin/viv.pl -s -x -v 3 -o example_01.log example_01_cfg.json

The resulting log file is verbose - you may want to reduce the verbosity level (the value supplied to the -v flag).

0 comments on commit 76329c4

Please sign in to comment.