LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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


Reply
  Search this Thread
Old 11-10-2009, 06:12 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-10-2009, 06:28 AM   #2
misson
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
by the way, it is not shutdown, I only want throw down the user whose time is ended. The TC keeps on waiting a new user... I've already developed it...
elif [ $tempo2 -eq 0 ]
then
pkill -9 -u $aluno
usermod -L $aluno
/usr/local/bin/cic-skel $aluno
fi

Who can help, I'll thank.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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: The LTSP adds thin-client support to a Linux server LXer Syndicated Linux News 0 12-15-2008 12:41 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 07:01 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration