On Thu, 5 Aug 2004 18:33:41 -0400, Bill Shirley [EMAIL PROTECTED] wrote:
Did you see this post? I'm not convinced you are
exporting the DISPLAY variable. Can you post your
script?
Yeah, I saw it. Sorry I didn't reply at the time, I was busy trying
out all sorts of things and a bit
On Wed, 4 Aug 2004 17:57:55 -0400, Bill Shirley [EMAIL PROTECTED] wrote:
Try putting in the script:
DISPLAY=:0.0
at the top after #!/bin/sh
Thanks for the suggestion. It desn't work, though, unfortunately.
Germán.
Want to buy your Pack
On Wed, 04 Aug 2004 20:14:21 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
Or you script can start something like:
#!/bin/bash
#
PATH=/bin;/usr/bin;/home/ger/bin
Another way you can do it is to define variables for all your commands
at the start of the script, and then use the
On Wed, 04 Aug 2004 20:22:44 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
Bill Shirley wrote:
Try putting in the script:
DISPLAY=:0.0
at the top after #!/bin/sh
HTH, Bill
This only works if you are running the X server. If another user is
running X, you will not be
On Thu, 5 Aug 2004 09:18:36 -0500, Hoyt Bailey [EMAIL PROTECTED] wrote:
You might try:
'/usr/bin/galeon weather.com' (or whatever site you want)
Yeah, tried that too. I think I've tried everything short of changing
security settings in the X server, but I'm not going down that route.
Anyway,
On Fri, 2004-08-06 at 00:54, German Guillot wrote:
On Thu, 5 Aug 2004 09:18:36 -0500, Hoyt Bailey [EMAIL PROTECTED] wrote:
You might try:
'/usr/bin/galeon weather.com' (or whatever site you want)
Yeah, tried that too. I think I've tried everything short of changing
security settings in
On Fri, 06 Aug 2004 01:06:05 +1000, Stephen Kühn [EMAIL PROTECTED] wrote:
Maybe I walked in late in the thread here - but I'm trying to NOW figure
out what y'all tryin to do - is it that you want cron to open a browser
for you for a specific URL and that's all?
Yep, that's it. I'm starting to
On Fri, 2004-08-06 at 01:20, German Guillot wrote:
On Fri, 06 Aug 2004 01:06:05 +1000, Stephen Kühn [EMAIL PROTECTED] wrote:
Maybe I walked in late in the thread here - but I'm trying to NOW figure
out what y'all tryin to do - is it that you want cron to open a browser
for you for a
German Guillot wrote:
On Wed, 04 Aug 2004 20:22:44 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
Bill Shirley wrote:
Try putting in the script:
DISPLAY=:0.0
at the top after #!/bin/sh
HTH, Bill
This only works if you are running the X server. If another user is
running X, you
Bill Shirley wrote:
[EMAIL PROTECTED] tmp]# cat testg #!/bin/sh
export DISPLAY=:0.0
echo $DISPLAY
/usr/bin/galeon
#/usr/bin/mozilla
Works for me!
Bill
Are you running X as the same user? If user bill logs in to the DM, or
runs startx, user joe can not connect to the X server without a LOT
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of German Guillot
Sent: Thursday, August 05, 2004 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Cron doesn't run for user
On Thu, 5 Aug 2004 08:29:16 -0400, Bill Shirley [EMAIL PROTECTED] wrote
On Fri, 06 Aug 2004 01:42:10 +1000, Stephen Kühn [EMAIL PROTECTED] wrote:
Ok...just for giggles and grins, I just created a small script to fire
up Galeon (/home/stephen/bin/start_galeon) ::
snip
#!/bin/bash
/usr/bin/galeon http://freshmeat.net
exit
/snip
Fired up kcron as
Bill Shirley wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of German Guillot
Sent: Thursday, August 05, 2004 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Cron doesn't run for user
On Thu, 5 Aug 2004 08:29:16 -0400, Bill Shirley [EMAIL
: [newbie] Cron doesn't run for user
On Fri, 06 Aug 2004 01:42:10 +1000, Stephen Kühn [EMAIL PROTECTED] wrote:
Ok...just for giggles and grins, I just created a small script to fire
up Galeon (/home/stephen/bin/start_galeon) ::
snip
#!/bin/bash
/usr/bin/galeon http://freshmeat.net
On Thu, 05 Aug 2004 10:47:57 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
The display manager will be running as root. But when a suer logs in,
it turns ownership over th the user. If you use run level 3, then the
user owns the X server from the start. You can also do things like
On Fri, 2004-08-06 at 02:12, German Guillot wrote:
Well, damnit. No, you're not missing anything, but I obviously am. I
have a little script just like yours. I create a crontab with a task
for it. It just doesn't work. Other scripts with other commands (cat,
for example) are run by cron from
German Guillot wrote:
I'll check out xauth, though it seems a bit of overkill to have two X
servers running, just for this little toy. It'll teach me something
new, though.
I changed my run level to 3 and logged in again. I see that I own a
process called xinit, but top shows me that X is run by
On Fri, 06 Aug 2004 03:25:10 +1000, Stephen Kühn [EMAIL PROTECTED] wrote:
Now I'm led to wonder, are you using kcron to setup the cron job - and
is the user YOU or root or system?
I'm not using kcron - I don't even have it. In my home dir I have a
text file called, appropriately (or
On Thu, 05 Aug 2004 12:58:40 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
As you say, running two X servers is overkill for what you want. I am
trying to remember something - there is a dummy X server package, or
something like that, for faking an X server. It may be part of the VNC
On Fri, 2004-08-06 at 05:47, German Guillot wrote:
On Fri, 06 Aug 2004 03:25:10 +1000, Stephen Kühn [EMAIL PROTECTED] wrote:
Now I'm led to wonder, are you using kcron to setup the cron job - and
is the user YOU or root or system?
I'm not using kcron - I don't even have it. In my home
Hello All,
I'm on mdk 10 OE. I've put a little bash script in /home/ger/bin/,
added that directory to my path, created a crontab for myself with
crontab (it's now /var/spool/cron/ger), added my whole $PATH to it,
created /etc/cron.allow and even /var/spool/cron/cron.allow with my
user name in it,
German Guillot wrote:
Hello All,
I'm on mdk 10 OE. I've put a little bash script in /home/ger/bin/,
added that directory to my path, created a crontab for myself with
crontab (it's now /var/spool/cron/ger), added my whole $PATH to it,
created /etc/cron.allow and even /var/spool/cron/cron.allow
Have you got your scripts path explicit in the crontab?
Tony.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of German Guillot
Sent: Wednesday, August 04, 2004 4:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Cron doesn't run for user
On Wed, 4
On Wed, 04 Aug 2004 11:34:36 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
You might want to try adding a PATH=whatever your path is before the
first command in the script.
Yep, I did that. I tried PATH=/home/ger/bin and when that didn't work
PATH=/bin:/usr/bin:/usr/bin/X11: etc, the
German Guillot wrote:
On Wed, 04 Aug 2004 11:34:36 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
You might want to try adding a PATH=whatever your path is before
the first command in the script.
Yep, I did that. I tried PATH=/home/ger/bin and when that didn't work
On Wed, 04 Aug 2004 15:07:43 -0500, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
Yep, I did that. I tried PATH=/home/ger/bin and when that didn't work
PATH=/bin:/usr/bin:/usr/bin/X11: etc, the whole bash environment
variable.
Did you add the full path in the script, or in the crontab
Try putting in the script:
DISPLAY=:0.0
at the top after #!/bin/sh
HTH,
Bill
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of German Guillot
Sent: Wednesday, August 04, 2004 4:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Cron doesn't run
German Guillot wrote:
I find specifing the path the script expects in the script itself
cuts way down on problems, especialy if you later change your path
from what it was when you wrote the script. You can usualy depend
on /bin;/usr/sbin, but anything else depends on how the script is
being
Bill Shirley wrote:
Try putting in the script:
DISPLAY=:0.0
at the top after #!/bin/sh
HTH, Bill
This only works if you are running the X server. If another user is
running X, you will not be able to connect to the X server, unless you
turn off security. It also fails if you are not
29 matches
Mail list logo