| 22 |
use gdclient; |
use gdclient; |
| 23 |
|
|
| 24 |
my $action = shift; |
my $action = shift; |
| 25 |
|
my $hostname = 'siggi'; |
| 26 |
|
|
| 27 |
sub usage { |
sub usage { |
| 28 |
print "Usage: gdc.pl ripcd|ripstatus", "\n"; |
print "Usage: gdc.pl ripcd|ripstatus", "\n"; |
| 42 |
|
|
| 43 |
|
|
| 44 |
sub ripcd { |
sub ripcd { |
| 45 |
gd_connect("siggi"); |
gd_connect($hostname); |
| 46 |
|
|
| 47 |
# 1. check if cd is already in database (probably ripped?) |
# 1. check if cd is already in database (probably ripped?) |
| 48 |
if (my $check_cd = gd_command("chcd", undef, 1)) { |
if (my $check_cd = gd_command("chcd", undef, 1)) { |
| 86 |
} |
} |
| 87 |
|
|
| 88 |
sub ripstatus { |
sub ripstatus { |
| 89 |
gd_connect("siggi"); |
gd_connect($hostname); |
| 90 |
|
|
| 91 |
while (1) { |
while (1) { |
| 92 |
my $status_rip = gd_command("grpst", undef, 1); |
my $status_rip = gd_command("grpst", undef, 1); |