The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Webinar: BAM: The Killer App for CEP iBot Complex Event Processing RSS News 0 01-31-2008 09:50 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-22-2008
gonzo gonzo is offline
Registered User
  
 

Join Date: Jan 2008
Location: Madrid Spain
Posts: 7
help rsh killer

hi everyone , i have a rsh problem , some of the users letf a lot of rsh sesions opened , i need a script that chek with a "ps -fea | grep rsh" and kill every sesion that not start today . for example

Code:
    root 26770 26767  0   Apr 17 ?        0:00 rsh c-108 find / -type d -mtime +1 -name ???-??-????.??.??
    root  8803  8802  0 19:38:45 ?        0:00 rsh c-108 find / -type d -mtime +1 -name ???-??-????.??.??
    root 17009  1950  0 09:36:27 ?        0:00 in.rshd
    root 29836 29835  0   Apr 20 ?        0:00 rsh c-108 find / -type d -mtime +1 -name ???-??-????.??.??
    root 14475  1950  0 09:34:22 ?        0:00 in.rshd
    root  6801  6790  0 09:27:59 pts/40   0:00 rsh suxro001 xterm -display 10.2.47.136:0 -T suxro001
    root  8146  7394  0   Apr 19 ?        0:00 rsh sliro298 /aplicaciones/pproduccion_v3/lanza_pase_v3.sh stop

i already do , but manual can anyone help me with that

pd: sorry for my english

Last edited by Yogesh Sawant; 04-22-2008 at 04:58 AM.. Reason: added code tags
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0