First, create a file .ljs2post. This is the configuration file for
ljs2post.pl. It should have exactly 3 lines in it. The first line is
your lj user name, the second line is your lj password. The third line
is the ID number of the style you want to upload.
Next, place your s2 code in a file called "layer.s2" in the same
directory as ljs2post.pl and .ljs2post.
Finally, run ljs2post.pl. It should log you in then post layer.s2. If
there are syntax errors, it will display them on the screen.
Known bug: If there is a compiler error, then you won't get any useful
information. Instead, you get a perl error from the script. I'm not
sure why this happens.
If you have any questions, contact idealisms on livejournal.
-- idealisms (Tony Chang)
BTW, this code is available under the BSD License:
http://www.opensource.org/licenses/bsd-license.php