Re: running program remotely on different user



learnq wrote:

Hi,
I am using centos5 . I have created a user 'test'.
from test in gui mode if i run

flashplayer /home/player.swf it start the flash file .

Now what I want is to login the system by ssh and
want to run the command for user 'test' so that he can
see the flash file.

I used following command, it failes as i am from ssh

sudo su - test -c /usr/bin/flashplayer /home/player.swf

(flashplayer:2604): Gtk-WARNING **: cannot open display:

so what is the proper way to do that. Please help.

Thanks.

you need to set DISPLAY environment variable in your script.

--
SF

Facciamo quello per cui siamo stati addestrati, per cui siamo stati cresciuti, per cui siamo nati. Niente prigionieri, nessuna pietà. Inizio memorabile.
.



Relevant Pages