SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Command line and Spaces

SongKong will not accept a space in the directory from the command line:

pjb@pjsplace ~/SongKong $ ./songkong.sh -m /big/mp3/iTunes/Music/Michael\ Jackson/
debuglogfile is:/home/pjb/.songkong/Logs/songkong_debug%u-%g.log
userlogfile is:/home/pjb/.songkong/Logs/songkong_user%u-%g.log
Folder /big/mp3/iTunes/Music/Michael does not exist
Options for SongKong are as follows:
-d FILE : delete duplicates in folder
-h : show usage information
-m FILE : match songs in folder
-r FILE : revert any changes made to songs in folder by SongKong
-w FILE : watch folder
pjb@pjsplace ~/SongKong $

There is no problem in the GUI with spaces

Thank you
Patrick

Hi, try using double quotes

i.e.

./songkong.sh -m "/big/mp3/iTunes/Music/Michael\\ Jackson/" 

Sorry forgot to add that, I tried it before:

pjb@pjsplace ~/SongKong $ ./songkong.sh -m “/big/mp3/iTunes/Music/Michael\ Jackson/”
debuglogfile is:/home/pjb/.songkong/Logs/songkong_debug%u-%g.log
userlogfile is:/home/pjb/.songkong/Logs/songkong_user%u-%g.log
Folder /big/mp3/iTunes/Music/Michael\ does not exist
Options for SongKong are as follows:
-d FILE : delete duplicates in folder
-h : show usage information
-m FILE : match songs in folder
-r FILE : revert any changes made to songs in folder by SongKong
-w FILE : watch folder
pjb@pjsplace ~/SongKong $ ./songkong.sh -m “/big/mp3/iTunes/Music/Michael Jackson/”
debuglogfile is:/home/pjb/.songkong/Logs/songkong_debug%u-%g.log
userlogfile is:/home/pjb/.songkong/Logs/%u-%g.log
Folder /big/mp3/iTunes/Music/Michael does not exist
Options for SongKong are as follows:
-d FILE : delete duplicates in folder
-h : show usage information
-m FILE : match songs in folder
-r FILE : revert any changes made to songs in folder by SongKong
-w FILE : watch folder
pjb@pjsplace ~/SongKong $

Patrick

Hmm, is this on OSX or Linux ?

Okay its a problem with the shell script, if you just run the command within the shell scripts directly using double quotes round the filename it should work

i.e on OSX

java -Xms150m -Xmx1800m  -Dapple.laf.useScreenMenuBar=true -Dapple.awt.brushMetalLook=true -jar songkong-1.14.0.jar -m "/Users/paul/Music/Graham Coxon"

I’m trying to work out what is wrong with the shellscript itself

Ah, fixed shellscript by surrounding $@ at the end of the line with double quotes i.e “$@”
Fixed for next release.