Re: running program remotely on different user
- From: Dildo Bogumil di Boscopelo <psycho_78@xxxxxxxxx>
- Date: Thu, 21 Feb 2008 12:46:08 +0100
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.
.
- Follow-Ups:
- Re: running program remotely on different user
- From: learnq
- Re: running program remotely on different user
- Prev by Date: Re: download peak control
- Next by Date: Re: running program remotely on different user
- Previous by thread: Finding memory leak, walking the heap?
- Next by thread: Re: running program remotely on different user
- Index(es):
Relevant Pages
|