Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. piet83

    See what script executes a specific command

    The soluton is here: http://www.tek-tips.com/viewthread.cfm?qid=1508454&page=1
  2. piet83

    How to determine unused network services

    I have fixed it thanks to a colleague of mine. I moved rsh to /root/bin/ and then made the script below in /usr/bin/ named rsh. It even catches the script name from which it is started with the variable $PPID. Be sure to put #!/usr/bin/ksh to your scripts and it works. #!/usr/bin/ksh...
  3. piet83

    How to determine unused network services

    When I try you script rsh doesn't work anymore. hostname# rsh hostname + + date +%d%h%y.%H:%M COMO=/tmp/rsh_log.24Oct08.10:34 + COMD=rsh_hostname + who -m + 1>> /tmp/rsh_log.24Oct08.10:34 + print rsh_hostname + 1>> /tmp/rsh_log.24Oct08.10:34 + /usr/bin/rshr hostname + tee -a...
  4. piet83

    How to determine unused network services

    Thank you for your reply. It is very useful but there is still one thing. If the rsh command is executed from within a script I would like to log the name of that script.
  5. piet83

    See what script executes a specific command

    On our systems are many scripts that execute rsh or ftp commands. I would like to log what script calls rsh or ftp. I've tried to catch it with $$ and $0 at the moment a script starts but they only return the PID from ksh and the last run command which is rsh or ftp. Is there someone who has an...
  6. piet83

    How to determine unused network services

    Yes thank you, I know that I can see the network status with `netstat -a` and then I can do an `lsof -i :[portnr or servicename]` to see what kind of PID is behind that port or service. But that just a snapshot of one moment in time. I could run the commands on different times and days but...
  7. piet83

    How to determine unused network services

    Hello i'm quite new to AIX and Unix in general. And I have a question. How can I monitor which network services are being used and unused. And how can I determine what or who uses it. For example I would like to disable rsh and replace it by ssh. How can I see who is using rsh and what they...

Part and Inventory Search

Back
Top