LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2008, 01:26 PM   #1
tbttfox
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
getting back at xeyes


A couple times a day, my entire screen is filled with xeyes, and I'm trying to figure out a way to have that backfire on the perpetrator.

I've got a snippet of code that, if xeyes exists, will shut it down and send it back to the person that created it. However, my coworkers have gotten smarter and only leave the eyes up a short time so I can't fire off my command in time.

So my problem is this: Is there a daemon/process/something that I can use to execute my "backfire" command?

I've already tried a bash script:
Code:
#!/bin/bash
while true ; do
  check=`ps aux | grep -c xeyes`
     if [ $check -ge 1 ] ; then
     python ~/backfire.py
  fi
  sleep 1
done
However, this noticeably hits the processor on my sys monitor (which matters at work), and I'm looking for a much more efficient way to do this.

Any suggestions from the hive mind?
Thanks!
 
Old 02-28-2008, 08:07 AM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,283

Rep: Reputation: Disabled
until you get a better reply, why not concentrate on stopping people logging in to your computer.

how are they getting in?

ssh?

telnet?
 
Old 02-28-2008, 06:16 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
That was my response too...
 
Old 02-28-2008, 11:18 PM   #4
tbttfox
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
In xeyes, there's the option to set the display and I honestly don't know how it works/what protocol it uses.
So typing something like "xeyes -display lw465:0" would pop up the eyes on whatever machine on the network was lw465.

Also, this is work, so I (obviously) don't have root access and I need to keep most of my home directory readable.
 
Old 02-29-2008, 12:30 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
iirc, it's the X-win protocol, hence the name...
 
  


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
back up Lay Back Linux - Newbie 1 07-23-2007 03:12 AM
Xeyes!!! bigoli MEPIS 4 06-20-2005 05:40 AM
Back button to Go Back? javamdk Linux - Newbie 2 07-08-2004 11:34 PM
I'm back! Thymox LinuxQuestions.org Member Intro 2 06-16-2003 08:11 PM
Back Up moses76522 Linux - Software 2 09-20-2002 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 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