Monitor Port, if active, pipe command to screen


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Monitor Port, if active, pipe command to screen
# 1  
Old 03-30-2010
Monitor Port, if active, pipe command to screen

I am a linux newbie and I am learning. I need a script that will monitor a port and if active -- only active, not listening or waiting -- then pipe some commands to the screen as if they were typed on the keyboard. Can a bash or perl script do this and if so, could someone help me out?

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cant log in from external monitor on laptop with broken screen.

Hello. I am installing Kali Linux on a laptop with no monitor. The installation goes fine through the external monitor and I can see the GRUB menu on boot, but once it comes time to log in it acts like my non existant laptop screen is my main monitor to type my login info on while my external is... (14 Replies)
Discussion started by: debpleb293
14 Replies

2. Red Hat

Screen Resolution on External Monitor from RHEL 6.3

Hey everyone, I have a KVM or External monitor (19" Dell) that I am trying to hook up to a laptop running RHEL 6.3 (via VGA which is the only option). When I connect it, and go to System->Preferences->Display, the max resolution option it provides me for these external devices is 1280x1024. ... (2 Replies)
Discussion started by: rchaud10
2 Replies

3. Hardware

get touch screen driver for Dell ST222OT Monitor

Hi We're looking for linux touch screen module (driver) for Dell ST222OT Monitor. BTW Has someone already tried to use this monitor under linux and the touch screen works? (0 Replies)
Discussion started by: ccc
0 Replies

4. Solaris

Port Active?

Hi, I have recently installed autosys R11 on my a container in solaris 10. the container has solaris 10. I am now trying to configure the autosys workload contol center on a windows VM. but i can not get the contol center to log into the the autosys server. when i try to estiblish a... (4 Replies)
Discussion started by: dshakey
4 Replies

5. Shell Programming and Scripting

Script to check if Port is Active

is there a better way to check if a port is active on linux and sunos systems? this is currently what I'm using in my script: netstat -an | egrep -i "$PORT" i know this isn't the best way as there could be numbers in that output that has my port number in it but isn't necessarily a... (0 Replies)
Discussion started by: SkySmart
0 Replies

6. AIX

command to monitor the Serial port

Hi, Can anyone please tell me how to check the status of the serial port ?? for example,in Sun os we use the command pmadm to see the status of the serial port-- So is there any command or method in AIX,So that i can see the serial port status ?? thanks in advance ... (1 Reply)
Discussion started by: smartgupta
1 Replies

7. Ubuntu

Using Xorg t extend laptop screen to external monitor

Hey, I was trying to configure my laptop's xorg.conf file so I could use a external monitor. But things got messed up and now I can't get the original back (meaning a high resolution desktop on the laptop). What went wrong? How is it possible that the server always gets stuck at the line: ... (1 Reply)
Discussion started by: ElJavi
1 Replies

8. What is on Your Mind?

Can you use a gps touch screen for a monitor?

I have been looking for a monitor wich i can hold in my hands comfortably and just sit back and relax with it doing my computer work on it via touch screen. Is it possible since the gps has usb to control my pc wich it? and view my desktop? If not does anyone know of a monitor that would work. Im... (3 Replies)
Discussion started by: FaoX666
3 Replies
Login or Register to Ask a Question
gnome-screensaver-command(1)				      General Commands Manual				      gnome-screensaver-command(1)

NAME
gnome-screensaver-command - controls GNOME screensaver SYNOPSIS
gnome-screensaver-command [OPTION...] DESCRIPTION
gnome-screensaver-command is a tool for controlling an already running instance of gnome-screensaver. OPTIONS
--exit Causes the screensaver to exit gracefully -q, --query Query the state of the screensaver -t, --time Query the length of time the screensaver has been active -l, --lock Tells the running screensaver process to lock the screen immediately -c, --cycle If the screensaver is active then switch to another graphics demo -a, --activate Turn the screensaver on (blank the screen) -d, --deactivate If the screensaver is active then deactivate it (un-blank the screen) -p, --poke Poke the running screensaver to simulate user activity -i, --inhibit Inhibit the screensaver from activating. Command blocks while inhibit is active. -n, --application-name The calling application that is inhibiting the screensaver -r, --reason The reason for inhibiting the screensaver -V, --version Version of this application AUTHORS
gnome-screensaver-command is written by William Jon McCann <mccann@jhu.edu>. This manual page was written by Sven Arvidsson <sa@whiz.se>. SEE ALSO
gnome-screensaver(1) GNOME
2007-09-27 gnome-screensaver-command(1)