Re: running program remotely on different user
- From: learnq <learnq@xxxxxxxxx>
- Date: Thu, 21 Feb 2008 04:12:19 -0800 (PST)
On Feb 21, 9:46 pm, Dildo Bogumil di Boscopelo <psycho...@xxxxxxxxx>
wrote:
learnqwrote:
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..- Hide quoted text -
- Show quoted text -
hi,
can you give some example how to do that or a link .
thx.
.
- Follow-Ups:
- Re: running program remotely on different user
- From: Bill Marcum
- Re: running program remotely on different user
- References:
- Re: running program remotely on different user
- From: Dildo Bogumil di Boscopelo
- Re: running program remotely on different user
- Prev by Date: Re: running program remotely on different user
- Next by Date: Re: running program remotely on different user
- Previous by thread: Re: running program remotely on different user
- Next by thread: Re: running program remotely on different user
- Index(es):
Relevant Pages
|