Re: Message from root script to users?
- From: Ghodmode <ghodmode@xxxxxxxxxxxx>
- Date: Sat, 19 May 2007 03:46:53 +1200
On 5/18/07, Dave M <DaveM@xxxxxxxx> wrote:
I have a daily backup script that is by cron each night. If there is a
failure during the backup process I would like to have the script to
notify
the user and, if possible, allow the user to choose to cancel or re-try.
Is
there a way to launch a message box or a dialog box (using zenity?) on a
user from the script that is running as root?
Hi Dave,
One way would be to change the script and add another one to be run when
the user logs in. Change the backup script so that, upon failure, it sets a
flag or even a whole error message in a file that the user can read. Then,
in the user's .bash_profile, run another script that checks for the presence
of the file and generates the Zenity error message.
I've never used Zenity, so I don't know about any of its specific
functionality.
-- Vince --
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- Message from root script to users?
- From: Dave M
- Message from root script to users?
- Prev by Date: How do I get phpmyadmin working?
- Next by Date: Re: Always open Open Office in English
- Previous by thread: Message from root script to users?
- Next by thread: Always open Open Office in English
- Index(es):
Relevant Pages
|