S2up
From No LJ Ads Wiki
Contents |
[edit] Overview
s2up is a Perl script that assists with uploading S2 layers to a site running LiveJournal Server.
[edit] Usage
s2up [options] [filename]
Options:
--url="..." Specify a URL to use for uploading
--help Read this help message
--auth Specify username:password to use for authentication
--authfile Specify a file containing username:password
--noninteractive No entry prompts for any reason
If no filename is specified, stdin will be used.
If no URL is specified, the program will try to find
a string url="" in the layer code, which you can place
in a comment.
If no auth or authfile are specified, we'll look for the
string authfile="..." in the layer code, too.
[edit] Examples
Each example will use the following:
- Server:
www.livejournal.com - LayerID:
1 - Username:
exampleusername - Password:
password - Authfile:
exampleusername.auth - Filename:
example.s2
[edit] Command-Line Only
C:\> perl s2up.pl --url=http://www.livejournal.com/interface/s2/1 --auth=exampleusername:password example.s2
[edit] With Authfile
Authfile (exampleusername.auth):
exampleusername:password
Command-Line:
C:\> perl s2up.pl --url=http://www.livejournal.com/interface/s2/1 --authfile=exampleusername.auth example.s2
[edit] With Authfile in Layer
Authfile (exampleusername.auth):
exampleusername:password
Top of Layer:
# authfile="exampleusername.auth"
Command-Line:
C:\> perl s2up.pl --url=http://www.livejournal.com/interface/s2/1 example.s2
[edit] With URL in Layer
Top of Layer:
# url="http://www.livejournal.com/interface/s2/1"
Command-Line:
C:\> perl s2up.pl --auth=exampleusername:password example.s2
[edit] With Authfile and URL in Layer
Authfile (exampleusername.auth):
exampleusername:password
Top of Layer:
# url="http://www.livejournal.com/interface/s2/1" # authfile="exampleusername.auth"
Command-Line:
C:\> perl s2up.pl example.s2

