[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Command line and Spaces  XML
Forum Index -> SongKong Issues
Author Message
pjr107



Joined: 28/05/2013 12:29:29
Messages: 5
Offline

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
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7299
Offline

Hi, try using double quotes

i.e.

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

thanks Paul (Administrator)
pjr107



Joined: 28/05/2013 12:29:29
Messages: 5
Offline

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
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7299
Offline

Hmm, is this on OSX or Linux ?

thanks Paul (Administrator)
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7299
Offline

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

Code:
 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

thanks Paul (Administrator)
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7299
Offline

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

thanks Paul (Administrator)
 
Forum Index -> SongKong Issues
Go to:   
Powered by JForum 2.1.6 © JForum Team