aemneos wrote: 
> So I checked and couldn't find the file /usr/bin/perl or any other
> version of Perl, so I installed it via the Qnap App Center. 
> Now I have a folder /opt with /bin and /lib inside. In the /bin folder
> there is a file called perl.
> So I changed the first line in your script to #!/opt/bin/perl but I
> still get the error:
> -sh: /share/Public/CopyPlaylistToUSB.pl: /opt/bin/perl^M: bad
> interpreter: No such file or directory
> But the file perl is there... 
> 

Have you created / edited the file in a Windows editor? It may have
Windows line endings (the ^M)
If so, either open/save it with an editor capable of saving in Unix line
format, or convert it on the command line with e.g. tr:

Code:
--------------------
    tr -d '\r' < CopyPlaylistToUSB.pl > CopyPlaylistToUSB.plX && mv -i 
CopyPlaylistToUSB.pl CopyPlaylistToUSB.pl~ && mv -i CopyPlaylistToUSB.plX 
CopyPlaylistToUSB.pl 
--------------------


Anyhow, I've rewritten the script in Python in the meantime (see 'this
post'
(https://forums.slimdevices.com/showthread.php?111132-Copy-playlited-tracks-to-another-directory&p=954207#post954207)),
you may want to use the new version.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108762

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to