Re: How do I run command line abiword without DISPLAY

From: Ryan Pavlik <>
Date: Tue Mar 18 2008 - 16:29:08 CET

Dan Ell wrote:
> I have a linux script that picks up items from a directory and
> mail-merges them to the printer. The problem is that this script will
> not work unless the main console is logged on. Is there an option in
> abiword to allow it to run command line without having to have a X
> window open?
> The relevant portion of the script does the following
> /usr/bin/abiword-2.2 -m /abiord/183291_1468365168 /abiord/docs/order.abw
> -p /tmp/
> I am currently setting the environment as follows to get it to work.
> The problem is that I need to constantly update this and the root
> console has to be logged in for it to work. I am wanting to know how I
> can stabilize this environment and make it so the root console does not
> need to be logged on
> export SSH_AGENT_PID=2666
> export TERM=xterm
> export GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
> export WINDOWID=23098784
> export SSH_AUTH_SOCK=/tmp/ssh-XXqpWsdh/agent.2602
> export SESSION_MANAGER=local/linux:/tmp/.ICE-unix/2602
> export
> PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin
> :
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
> export XMODIFIERS=@im=none
> export GDMSESSION=Default
> export SHLVL=2
> export DISPLAY=:0.0
> export COLORTERM=gnome-terminal
> XAUTHORITY=/root/.Xauthority
I am not sure, but I think there has been work on things related to such
usage in newer versions. In any case, AbiWord 2.2 is quite old and
probably has a few security vulnerabilities, if I recall correctly, not
to mention many bugs that have been fixed in more recent versions. I
recommend upgrading if possible, or even waiting a short while and
upgrading to 2.6.0 when it is released, which again is a great leap in
reliability and efficiency.

Ryan Pavlik
#282  +  (442) -  [X]
A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++;
To unsubscribe from this list, send a message to with the word
unsubscribe in the message body.
Received on Tue Mar 18 16:29:41 2008

This archive was generated by hypermail 2.1.8 : Tue Mar 18 2008 - 16:29:41 CET