Changeset 74 for client/trunk/bin/sophie
- Timestamp:
- 12/05/10 05:45:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/trunk/bin/sophie
r70 r74 4 4 use warnings; 5 5 use Sophie::Client; 6 use Getopt::Long; 7 use Pod::Usage; 6 8 7 my $sc = Sophie::Client->new(); 9 GetOptions( 10 'u=s' => \my $url, 11 'l=s' => \my $login, 12 'p=s' => \my $pass, 13 't=s' => \my $type, 14 'd=s' => \my @options, 15 ) or pod2usage; 16 17 my %options; 18 foreach (@options) { 19 m/([^=]+)\s*=\s*(.*)/ or next; 20 $options{$1} = $2; 21 } 22 23 my $sc = Sophie::Client->new( 24 server => $url, 25 login => $login, 26 password => $pass, 27 type => $type, 28 ); 8 29 9 30 $sc->run;
Note: See TracChangeset
for help on using the changeset viewer.