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 SkipVought 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. wakeboarder

    How do I run a script every time a modem disconnects

    We use a cron job on NCR UNIX that runs avery 2 minutes that will check to see if the modem is enabled and not in use. It will disable the modem and log the action. It does a little more logic like check to see if the modem was manually enabled and allow ten minutes for login before disabling...
  2. wakeboarder

    How to get PID of the current process in Shell-script

    TIP It may be good pratice to use the PID number with any temp files created with your shell scripts. Example1: tempfile="/tmp/scriptname.tmp.$$" rm $tempfile Example2: tempfile1="/tmp/scriptname.tmp1.$$" tempfile2="/tmp/scriptname.tmp2.$$" rm /tmp/*.$$
  3. wakeboarder

    How to get PID of the current process in Shell-script

    TIP It may be good pratice to use the PID number with any temp files created with your shell scripts. Example1: tempfile="/tmp/scriptname.tmp.$$" rm $tempfile Example2: tempfile1=="/tmp/scriptname.tmp1.$$" tempfile2=="/tmp/scriptname.tmp2.$$" rm /tmp/*.$$

Part and Inventory Search

Back
Top