Unix Technical Forum

startproc - cannot run program for X

This is a discussion on startproc - cannot run program for X within the Linux Operating System forums, part of the Unix Operating Systems category; --> I need to run some process (ordinary php-cli script) as some user. In my simple.php I am launching some ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 05:53 AM
stastie
 
Posts: n/a
Default startproc - cannot run program for X

I need to run some process (ordinary php-cli script) as some user. In
my simple.php I am launching some program for X (e.g. firefox).

startproc -u someuser /home/someuser/simple.php

1) as root: simple.php is running, but firefox is not
2) as someuser: everything is ok, firefox is running
3) even if I run ./simple.php, everything is ok, firefox is running

What is wrong?

Perhaps I need to set some environment variables? (DISPLAY and
XAUTHORITY I have already tryied, the same result)

With combination like follows, things work fine:
# as user root
startproc /home/someuser/simple.php
# in simple.php is:
su someuser -m -c "firefox"

Thank you for help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com