spadmin fails to run

In order to change the default printer language I attempted to run spadmin.
Logged in as root, I located the directory containing spadmin and issued the
command +./spadmin". The result was to return four lines, each reading "No
protocol specified".

I am running Linux Mint 13 with KDE.

Where can I learn more about how to use this command?

Hi :slight_smile:
Sorry for the late response!

An 'obvious' way to get a little bit more information about any unix-based
command is to add the tag "-h" or "--help" after the command. In this case
it would be something like:

spadmin -h

or

spadmin --help

It's just a quick-help, "cheat sheet". There is a lot more info in the
manual which you can access using the "man" command (seems a little sexist
but it's really just short for manual). So, try

man spadmin

Hmmm, i don't have spadmin installed on my machine so i got nothing from
either of those commands.
Regards from
Tom :slight_smile:

Hi :slight_smile:
Sorry for the late response!

An 'obvious' way to get a little bit more information about any unix-based
command is to add the tag "-h" or "--help" after the command. In this case
it would be something like:

spadmin -h

or

spadmin --help

It's just a quick-help, "cheat sheet". There is a lot more info in the
manual which you can access using the "man" command (seems a little sexist
but it's really just short for manual). So, try

man spadmin

my understanding is that the OP (you have deleted the original post) wasn't getting it to run at all.

he had a funny sign in front of the command which I thought might be an artifact produced by his email. he should be sure to invoke the command as

./spadmin

assuming he is in the same directory or give the whole path (without the leading dot).

Hmmm, i don't have spadmin installed on my machine so i got nothing from
either of those commands.

I have it but it seems to belong to openoffice in my case (on this machine) and seems to require 'sudo' to invoke it as it's owned by root.

Regards from
Tom :slight_smile:

regards to you too!

F.

Hi,

In order to change the default printer language I attempted to run spadmin.
Logged in as root, I located the directory containing spadmin and issued the
command +./spadmin". The result was to return four lines, each reading "No
protocol specified".

I am running Linux Mint 13 with KDE.

Where can I learn more about how to use this command?

I have a version of Linux Mint 12 with Mate (except that I'm running enlightenment mostly), with the following versions of LibreOffice :

/home/alex/LODEV/core/padmin/Executable_spadmin.bin.mk
/home/alex/LODEV/core/padmin/source/spadmin.sh

The above two are files from my LO development git tree.

/opt/libreoffice3.5/program/spadmin
/opt/libreoffice3.5/program/spadmin.bin
/opt/libreoffice3.6/program/spadmin
/opt/libreoffice3.6/program/spadmin.bin
/opt/lodev3.6/program/spadmin
/opt/lodev3.6/program/spadmin.bin

These 6 entries all correspond to daily, or development, builds of LibreOffice downloaded from the LibreOffice web site.

/usr/lib/debug/usr/lib/libreoffice/program/spadmin.bin
/usr/lib/libreoffice/program/spadmin
/usr/lib/libreoffice/program/spadmin.bin

The above 3 entries represent the version of LO provided with Mint or via the Ubuntu PPA repositories.

You should preferably use the full path to spadmin in order to get it to run. I don't need to be root though, for me, it runs just fine from a Terminal as a normal user and I don't need to put the dot in front of the script name.

Alex

Hi :slight_smile:
Do we know if this problem has been solved yet? Has the OP been in contact?
Regards from
Tom :slight_smile:

This problem hasn't been solved, but I did find a work-around. The problem I
was trying to address with spadmin was to change the default printing language
from pdf to postscript. I didn't think reading the man page was going to
solve my problem, so I didn't persue that possibility. Instead, I have just
created templates with the postcript as the default. That seems to work.
It would be nice to know why spadmin doesn't run, however.

Richard

________________________________
From: Felmon Davis <[hidden email]>
To: Tom <[hidden email]>
Cc: [hidden email]
Sent: Wednesday, 29 August 2012, 18:03
Subject: Re: [libreoffice-users] Re: spadmin fails to run

Hi :slight_smile:
Sorry for the late response!

An 'obvious' way to get a little bit more information about any unix-based
command is to add the tag "-h" or "--help" after the command. In this case
it would be something like:

spadmin -h

or

spadmin --help

It's just a quick-help, "cheat sheet". There is a lot more info in the
manual which you can access using the "man" command (seems a little sexist
but it's really just short for manual). So, try

man spadmin

my understanding is that the OP (you have deleted the original post) wasn't

getting it to run at all.

he had a funny sign in front of the command which I thought might be an

artifact produced by his email. he should be sure to invoke the command as

./spadmin

assuming he is in the same directory or give the whole path (without the

leading dot).

Hmmm, i don't have spadmin installed on my machine so i got nothing from
either of those commands.

I have it but it seems to belong to openoffice in my case (on this machine) and

seems to require 'sudo' to invoke it as it's owned by root.

Regards from
Tom :slight_smile:

regards to you too!

F.

-- Felmon Davis

Everything in the world may be endured except continual prosperity. --

Johann von Goethe

It would be nice to know why spadmin doesn't run, however.

I was never sure what command you used.

F.

I attempted to run spad min as follows:

I found the directory containing spadmin.
I changed into that directory "./spadmin".
The result was to return four lines, each reading "No protocol specified".

It would be nice to know why spadmin doesn't run, however.

I was never sure what command you used.

F.

________________________________
From: Felmon Davis <[hidden email]>
To: Tom <[hidden email]>
Cc: [hidden email]
Sent: Wednesday, 29 August 2012, 18:03
Subject: Re: [libreoffice-users] Re: spadmin fails to run

Hi :slight_smile:
Sorry for the late response!

An 'obvious' way to get a little bit more information about any unix-based
command is to add the tag "-h" or "--help" after the command. In this

case

it would be something like:

spadmin -h

or

spadmin --help

It's just a quick-help, "cheat sheet". There is a lot more info in the
manual which you can access using the "man" command (seems a little sexist
but it's really just short for manual). So, try

man spadmin

my understanding is that the OP (you have deleted the original post) wasn't

getting it to run at all.

he had a funny sign in front of the command which I thought might be an

artifact produced by his email. he should be sure to invoke the command as

./spadmin

assuming he is in the same directory or give the whole path (without the

leading dot).

Hmmm, i don't have spadmin installed on my machine so i got nothing from
either of those commands.

I have it but it seems to belong to openoffice in my case (on this machine)

and

Then you have an installation issue:

$ locate spadmin
/opt/libreoffice3.5/program/spadmin
/opt/libreoffice3.5/program/spadmin.bin
/opt/libreoffice3.6/program/spadmin
/opt/libreoffice3.6/program/spadmin.bin
/opt/openoffice.org/basis3.5/program/spadmin.bin
/opt/openoffice.org3/program/spadmin
/usr/lib/libreoffice/program/spadmin
/usr/lib/libreoffice/program/spadmin.bin

$ cd /opt/libreoffice3.6/program/
:/opt/libreoffice3.6/program$ ./spadmin

works fine. Works the same with:
:/opt/libreoffice3.5/program$ ./spadmin
:/usr/lib/libreoffice/program$ ./spadmin

.

I attempted to run spad min as follows:

I found the directory containing spadmin.
I changed into that directory "./spadmin".
The result was to return four lines, each reading "No protocol specified".

ok, I don't have an answer.

I can generate a similar error switching to root using

su -

since display environment is not set up to present it for root (and the error I get mentions the X display).

if I do

sudo opt/openoffice.org3/program/spadmin

it works; also there is a handy little program called 'sux' which carries the X environment over when you become root.

but this may not be the cause. perhaps someone else has a better diagnosis.

F.

I'm afraic my fingers got ahead of my brain.

I changed into the directory containing spadmin.
In that directory I issued the command "./spadmin" with the disappointing
result mentioned before.

locate spadmin returns:

/usr/lib/libreoffice/program/spadmin
/usr/lib/libreoffice/program/spadmin.bin

I attempted to run spad min as follows:

I found the directory containing spadmin.
I changed into that directory "./spadmin".
The result was to return four lines, each reading "No protocol specified".

Then you have an installation issue:

$ locate spadmin
/opt/libreoffice3.5/program/spadmin
/opt/libreoffice3.5/program/spadmin.bin
/opt/libreoffice3.6/program/spadmin
/opt/libreoffice3.6/program/spadmin.bin
/opt/openoffice.org/basis3.5/program/spadmin.bin
/opt/openoffice.org3/program/spadmin
/usr/lib/libreoffice/program/spadmin
/usr/lib/libreoffice/program/spadmin.bin

$ cd /opt/libreoffice3.6/program/
:/opt/libreoffice3.6/program$ ./spadmin

works fine. Works the same with:
:/opt/libreoffice3.5/program$ ./spadmin
:/usr/lib/libreoffice/program$ ./spadmin

.

Bingo!!!! That solved it. Run with sudo, not as root.

Thank you

Richard

I attempted to run spad min as follows:

I found the directory containing spadmin.
I changed into that directory "./spadmin".
The result was to return four lines, each reading "No protocol specified".

ok, I don't have an answer.

I can generate a similar error switching to root using

su -

since display environment is not set up to present it for root (and
the error I get mentions the X display).

if I do

sudo opt/openoffice.org3/program/spadmin

it works; also there is a handy little program called 'sux' which
carries the X environment over when you become root.

but this may not be the cause. perhaps someone else has a better
diagnosis.

F.

It would be nice to know why spadmin doesn't run, however.

I was never sure what command you used.

F.

________________________________
From: Felmon Davis <[hidden email]>
To: Tom <[hidden email]>
Cc: [hidden email]
Sent: Wednesday, 29 August 2012, 18:03
Subject: Re: [libreoffice-users] Re: spadmin fails to run

Hi :slight_smile:
Sorry for the late response!

An 'obvious' way to get a little bit more information about any unix-

based

command is to add the tag "-h" or "--help" after the command. In this

case

it would be something like:

spadmin -h

or

spadmin --help

It's just a quick-help, "cheat sheet". There is a lot more info in the
manual which you can access using the "man" command (seems a little

sexist

but it's really just short for manual). So, try

man spadmin

my understanding is that the OP (you have deleted the original post)

wasn't

Hello,
I am at LO 3.6.0.4 under Linux-Mint-13 with KDE. My spadmin is therefor at
/opt/libreoffice3.6/program/spadmin.
Everything works fine for me when using Alt-F2 (KDE-run) and then entering
the above program.
Regards from Salzburg
H.S.