Last change
on this file since 419 was
419,
checked in by ehb, 7 years ago
|
html5 input reattach, repeater enhancement step 1
|
File size:
497 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | |
---|
3 | use JSON; |
---|
4 | use Data::Dumper; |
---|
5 | |
---|
6 | if ( !@ARGV ) |
---|
7 | { |
---|
8 | print "\{\"error\":\"__moduleid__ called with no arguments\"\}\n"; |
---|
9 | exit; |
---|
10 | } |
---|
11 | |
---|
12 | $ref = decode_json( shift ); |
---|
13 | |
---|
14 | $res = {}; |
---|
15 | $$res{ "note" } = "__moduleid__ executable"; |
---|
16 | |
---|
17 | open OUT, ">>/tmp/log"; |
---|
18 | print OUT "-"x20 . "\n"; |
---|
19 | print OUT `date`; |
---|
20 | print OUT "$0\n"; |
---|
21 | print OUT "--- input ---\n"; |
---|
22 | print OUT Dumper($ref); |
---|
23 | print OUT "--- output ---\n"; |
---|
24 | print OUT Dumper($res); |
---|
25 | print OUT "-"x20 . "\n"; |
---|
26 | close OUT; |
---|
27 | |
---|
28 | print encode_json( $res ) . "\n"; |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.