28 Jan / 2008

[tech] Sansa Playlist Creator for Linux

Here is a bash script I came up with to create playlists on Sansa music player, on Linux

**

Sujee Maniyam
Sujee is a founder, principal at Elephant Scale where he provides consulting and training on Big Data technologies


  • By Derek 09 Feb 2008

    I was wondering if you have v1 or v2 of the sansa player?

  • By admin 10 Feb 2008

    @ Derek
    I have a E260.
    System Version : 01.02.18A

  • By sansaUser 24 Oct 2009

    I get the error
    ./sansa.sh: 38: Syntax error: “(” unexpected
    if I execute your script
    this is because of the function definition
    “function debug_echo ()”

    if I change the first line in the script to #!/bin/bash instead of #!/bin/sh, it works. So the shell sh on my system does not support ths function declaration.

    Moreover, I get
    iconv: illegal input sequence at position 843
    iconv: illegal input sequence at position 8882
    and some more iconv error messages, but I havent checked yet what’s the problem


  • By admin 24 Oct 2009

    good catch, it is a BASH script. So changing
    is the way to go.

    Not sure about the iconv errors, though.

Leave a Reply

Copyright 2015 Sujee Maniyam (