Bug 1140 - Can�t run my script after upgrade from 5.4.1 to 6.x
: Can�t run my script after upgrade from 5.4.1 to 6.x
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 6.0.0
: PC Windows (legacy)
: P2 normal (vote)
: ---
Assigned To: Fred
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-21 10:20 UTC by Nalle Johansson
Modified: 2008-09-15 14:37 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nalle Johansson 2005-03-21 10:20:31 UTC
Just upgraded from version 5.4.1 to 6.1 b3 and now my script stop working.
When running them the player says "Now playing nothing". Is the commandline 
changed or why isn�t the slimserver finding those files anymore?

my script (.bat)looks like:
slimcommand.pl -server="10.11.107.101" -player="00:04:20:05:58:da" -
command="playlist play m:\playlist_library\01-topp_100.m3u"

Perlscript (slimcommand.pl):
#!/perl
use strict;
use Getopt::Long;
use IO::Socket;

# Parameter defaults
my $SBServerIP		= "127.0.0.1";
my $SBPort		= 9090;
my $SBPlayer		= "00:00:00:00:00:00";
my $SBCommand		= "";

GetOptions( 	"server:s"	=>	\$SBServerIP,
		"port:i"	=>	\$SBPort,
		"player:s"	=>	\$SBPlayer,
		"command:s"	=>	\$SBCommand);

if ($SBCommand eq "") {
	print "ID!!!";
	$SBCommand		= "display Player%20id: $SBPlayer 8";
}

print "\n$SBServerIP:$SBPort $SBPlayer: :$SBCommand:\n";


my $socket = IO::Socket::INET->new(PeerAddr => "$SBServerIP",PeerPort 
=> "$SBPort",Proto => "tcp",Type => SOCK_STREAM);
	print $socket "$SBPlayer $SBCommand\n";
close( $socket);
Comment 1 KDF 2005-03-21 12:19:53 UTC
Fred,
any comment on this?
Comment 2 Fred 2005-03-21 14:06:25 UTC
I posted a comment to the dev list about using shellwords to filter parameters in the CLI, and my last 
patch (subsequent to 6.0b3) gets rid of it for that particular reason. Unquoted (as CLI params should 
be), shellwords transforms:

   m:\playlist_library\01-topp_100.m3u

into

   m:playlist_library01-topp_100.m3u

and it fails.

Applying my last patch (6.0.2) should fix this.


Comment 3 Chris Owens 2006-06-16 14:41:07 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.