SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV Linux (http://forums.sagetv.com/forums/forumdisplay.php?f=38)
-   -   SJQ Agent problem (http://forums.sagetv.com/forums/showthread.php?t=65549)

gdippel 05-29-2018 05:45 AM

SJQ Agent problem
 
I'm finalizing my transfer of Sage to my Ubuntu server that I'm running as a VM on unRAID. I'm stuck trying to register a SJQ agent on the host system. I can register an agent as a plugin but when I try to run the SJQ agent outside of Sage I get the following:

Code:

sjqagent.sh: line 2: $'\r': command not found
: No such file or directory
sjqagent.sh: line 5: syntax error near unexpected token `$'do\r''
'jqagent.sh: line 5: `for jar in `ls ../lib/*.jar` ; do

The agent installs ok on another Ubuntu box were I'm running Ubuntu Desktop. The reason I want an agent running outside Sage is to use a groovy script to backup the Sage installation which I have used on my windows machine successfully. Any suggestions?

KarylFStein 05-29-2018 07:20 AM

Looks like you may need to strip the carriage return (\r) from the script. Try this in the directory with the sjqagent.sh file:

Code:

sudo cp sjqagent.sh sjqagent.sh.save
sudo dos2unix sjqagent.sh

You may also have to install the dos2unix command.

gdippel 05-29-2018 09:54 AM

That worked. Thanks.


All times are GMT -6. The time now is 08:42 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.