Script won't run from CRON
From: maddman (maddman_75_at_yahoo.com)
Date: 05/26/04
- Next message: Liza: "Fedora doesn't allow uppercase user names??????"
- Previous message: Ungoy: "Re: New install of Linux and Windows Xp"
- Next in thread: Sybren Stuvel: "Re: Script won't run from CRON"
- Reply: Sybren Stuvel: "Re: Script won't run from CRON"
- Reply: Richard Huelbig: "Re: Script won't run from CRON"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 May 2004 10:25:12 -0700
Hello all. Let me describe my setup. I have a mandrake 9.1 server
for our information kiosks. There are six terminals in the plant, run
using LTSP. Mozilla provides the content to the users.
We've had a problem with users closing mozilla and not knowing how to
get it back open, either because clicking an icon is too much for
them, or some wanna-be hacker has deleted the icon. (Coincidentally,
if anyone would know a way for me to 'lock' the taskbar/panel in KDE
I'd be eternally grateful)
Anyway, my solution is to run a shell script to see if mozilla is
running on that user (one username per station) and if not, to start
it. Here's said shell script.
if [ -z "`ps --User username001 | grep "mozilla.bin"`" ]
then
`/usr/bin/mozilla`
fi
Works from the command line just fine. So I bring up a console and do
"crontab -e" to add it to this user's cron. However, it doesn't seem
to be working correctly. It doesn't do anything. Checking in
/var/log/messages it is getting ran as the same user, but it isn't
opening mozilla. Oh, here's what I get from 'crontab -l'
* * * * * /home/username001/mozcheck
I want it running every minute, and have the script in the user's home
directory. Now I could put the script in a central place and read the
username into the command line, but I'm not certian about how to enter
this into the crontab. I have it like this until I get the script
working correctly.
Thanks in advance for any tips!
maddman
- Next message: Liza: "Fedora doesn't allow uppercase user names??????"
- Previous message: Ungoy: "Re: New install of Linux and Windows Xp"
- Next in thread: Sybren Stuvel: "Re: Script won't run from CRON"
- Reply: Sybren Stuvel: "Re: Script won't run from CRON"
- Reply: Richard Huelbig: "Re: Script won't run from CRON"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|