<br><div><span class="gmail_quote">On 5/18/07, <b class="gmail_sendername">Dave M</b> <<a href="mailto:DaveM@mich.com">DaveM@mich.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a daily backup script that is by cron each night. If there is a<br>failure during the backup process I would like to have the script to notify<br>the user and, if possible, allow the user to choose to cancel or re-try. Is
<br>there a way to launch a message box or a dialog box (using zenity?) on a<br>user from the script that is running as root?<br></blockquote></div><br>Hi Dave,<br> 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.
<br><br>I've never used Zenity, so I don't know about any of its specific functionality.<br><br>-- Vince<br>