Running crontab cmd for user without knowing Env DISPLAY
Hello,
I set up my crontab for user with Kcron. That's nice program but I need to setup some X things: xmms in the morning. So to do so, we need this command line: Code:
env DISPLAY=:4. xmms -p Because of the quantity of users using the machine during the day, the env Display is variable from 0 up to 6. The pc is in my room, to wake me up with xmms the morning. So, is there a way to run the crontab user with this variable DISPLAY. Thanks :newbie: :newbie: :newbie: :newbie: :newbie: |
It might work like that: DISPLAY=:4 xmms -p
However it may fail if the display is not :4 at this time but :0 or :1... or if you are not allowed (see xhost). Yves. |
Quote:
Code:
ps -aux | grep "xinit" hmm:scratch: |
All times are GMT -5. The time now is 08:53 PM. |