LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 11-10-2009, 06:28 AM   #1
misson
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Question Zenity in Thin Clients using LTSP


Hi, guys!
I have a problem with zenity --warning.
I have a "Fat server" and Thin Clients(TCs) linked to it. Students does log in on TCs when I apply time for them.
I have one box(zenity --warning) with a message:"3 minutes to shutdown.\nPlease, save your documents." and I don't get it to appear at Thin Client.
This message must appear in students's displays when there is 3 minutes to finish their time. Actually, this is a piece of the script.
if [ $tempo2 -eq 3 ]
then
disp=$(who | grep -iw $aluno | awk '{print $2}')
OLDISPLAY=$DISPLAY
OLDXAUT=$XAUTHORITY
export DISPLAY=0.0
export XAUTHORITY=/cic/$aluno/.Xauthority
su $aluno -c 'zenity --warning --title="CIC" --text="Faltam 3 minutos para acabar seu tempo!\nSalve seus arquivos"'&
XAUTHORITY=$OLDXAUT
DISPLAY=$OLDISPLAY

Thanks!
 
Old 11-11-2009, 12:22 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zenity in Thin Clients using LTSP misson Programming 1 11-10-2009 06:28 AM
LTSP questions/ Thin Client live CD/ XDM donnied Linux - Networking 1 03-28-2009 11:05 AM
LXer: Sugar on Acer Aspire One & Thin Client via LTSP LXer Syndicated Linux News 0 01-17-2009 02:40 PM
LXer: LTSP 5 - Making Thin Clients Phat LXer Syndicated Linux News 0 05-16-2008 03:50 AM
Thin clients with Knoppix 3.7 and LTSP red_rhubarb Linux - Software 8 05-25-2005 03:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration