Page 1 of 1

SUSE 9.3 - sxaa doesn't work

Posted: Wed Sep 14, 2005 9:37 pm
by peterz
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.

Posted: Thu Sep 15, 2005 8:13 am
by ScalixSupport
saa is a python script. You do not need to run it as a shell script.

Cheers

Dave

Posted: Thu Sep 15, 2005 1:41 pm
by peterz
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.

Posted: Thu Sep 15, 2005 1:45 pm
by ScalixSupport
Was sxaa executable when you ran it ?

#!/usr/bin/python

should be enough to call the python interpreter.

Cheers

Dave

Posted: Thu Sep 15, 2005 2:29 pm
by peterz
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.