SUSE 9.3 - sxaa doesn't work

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

peterz
Posts: 39
Joined: Mon Sep 12, 2005 11:10 pm
Location: Burbank, CA, USA
Contact:

SUSE 9.3 - sxaa doesn't work

Postby peterz » Wed Sep 14, 2005 9:37 pm

I've been trying to do REDIRECT's, but have been failing miserably. I can't get the http://localhost/Scalix/rw to work and the sxaa utility works only partially. This is what I get when attempting to just run the help instance:

# sh sxaa
sxaa: line 17:
: sxaa,v 1.3 2005/07/06 00:30:32 dkelly Exp $

List autoactions: sxaa --list --username user

Add a forward: sxaa --add --username user --forward [address@domain | S=Last/G=First/OU1=mailnode] [--text file.txt]
Add a reply : sxaa --add --username user --reply --text file.txt
Add a redirect: sxaa --add --username user --redirect [address@domain | S=Last/G=First/OU1=mailnode] [--retain]

Delete an action: sxaa --del --username user --ref reference

Enable an action: sxaa --on --username user --ref reference
Disable an action: sxaa --off --username user --ref reference

Mark a reply as out of office (OOF): sxaa --username user --oof y --ref reference
: No such file or directory
sxaa: line 19: import: command not found
sxaa: line 20: import: command not found
sxaa: line 21: import: command not found
sxaa: line 22: import: command not found
sxaa: line 27: gDQuote: command not found
sxaa: line 28: gDebugMode: command not found
sxaa: line 33: gScalixBin: command not found
sxaa: line 34: gScalixDiag: command not found
sxaa: line 39: gAAFile: command not found
sxaa: line 40: gAAForwardDL: command not found
sxaa: line 41: gAAForwardText: command not found
sxaa: line 42: gAAReplyTxt: command not found
sxaa: line 43: syntax error near unexpected token `('
sxaa: line 43: `gForwardDLFile = "/tmp/sxaa.dl." + str(os.getpid())'

This is a newly installed SUSE 9.3 Pro installation, with the latest Scalix 9.4 Community Install for Suse 9.3

Any suggestions would be sincerely appreciated.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Sep 15, 2005 8:13 am

saa is a python script. You do not need to run it as a shell script.

Cheers

Dave

peterz
Posts: 39
Joined: Mon Sep 12, 2005 11:10 pm
Location: Burbank, CA, USA
Contact:

Postby peterz » Thu Sep 15, 2005 1:41 pm

Absolutely correct. It works now. I've never directly run a Python script on Linux before, so this was a suprise. I should have looked inside the script.

The documentation doesn't mention any of this of course.

For reference purposes, let me state, that the way to make this script work on Suse 9.3 is:

python sxaa --list --username John-Doe

python sxaa --add --username John-Doe --redirect john.doe@aol.com


Thanks again for your fast response.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Sep 15, 2005 1:45 pm

Was sxaa executable when you ran it ?

#!/usr/bin/python

should be enough to call the python interpreter.

Cheers

Dave

peterz
Posts: 39
Joined: Mon Sep 12, 2005 11:10 pm
Location: Burbank, CA, USA
Contact:

Postby peterz » Thu Sep 15, 2005 2:29 pm

Using the commands I listed above, sxaa was absolutely executable. I was able to execute my redirect's immediately.

#!/usr/bin/python

didn't seem to do anything: no errors, just a new prompt.

Entering: sxaa --list --username John-Doe, just gives a command not found error.

Entering: python --list --username John-Doe, works as expected.


This is how it works with SUSE 9.3 Pro out of the box with a standard KDE graphic interface install, and Scalix 9.4 installed.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 1 guest