Re: running program remotely on different user
- From: learnq <learnq@xxxxxxxxx>
- Date: Fri, 22 Feb 2008 04:29:40 -0800 (PST)
On Feb 22, 1:03 am, Bill Marcum <marcumb...@xxxxxxxxxxxxx> wrote:
On 2008-02-21,learnq<lea...@xxxxxxxxx> wrote:
On Feb 21, 9:46 pm, Dildo Bogumil di Boscopelo <psycho...@xxxxxxxxx>
wrote:
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.
Here are two examples, depending on where you want the program to be
displayed:
ssh -X user@host xeyes
ssh -X user@host "DISPLAY=:0 xeyes"- Hide quoted text -
- Show quoted text -
Hi ,
Thank you for your replies .
i wrote the following script named /etc/script/midnight.sh
chmod 777 /etc/script/midnight.sh
midnight.sh
#!/bin/sh
#pid=`/bin/ps -ef | /bin/grep /usr/bin/flashplayer`;
pid=`/bin/ps -ef | /bin/grep /usr/bin/flashplayer | grep -v grep| awk -
F' ' '{print $2}'`;
if test "$pid" = "" ; then
echo "Process does not run yet!";
else
echo "Killing process..."
kill -9 $pid;
fi
echo "Restarting flashplayer...";
/usr/bin/flashplayer /home/player.swf
[root@localhost script]# crontab -l
@hourly /etc/script/midnight.sh
cron log
Mar 1 19:00:01 localhost crond[3324]: (root) CMD (/etc/script/
midnight.sh)
Mar 1 19:01:01 localhost crond[3336]: (root) CMD (run-parts /etc/
cron.hourly)
what i waht is ...the player will stop every one hour and than
restart(play) in 'demo' user's monitor.
what is wrong . Please help. Thanks.
.
- References:
- Re: running program remotely on different user
- From: Dildo Bogumil di Boscopelo
- Re: running program remotely on different user
- From: learnq
- Re: running program remotely on different user
- From: Bill Marcum
- Re: running program remotely on different user
- Prev by Date: Re: download peak control
- Next by Date: The Asylum BBS
- Previous by thread: Re: running program remotely on different user
- Next by thread: kdevelop gdb commands
- Index(es):