Edit D:\app\Administrator\product\11.2.0\dbhome_1\sysman\admin\scripts\pidfile
# $Header: pidfile 25-jun-2002.10:11:15 xxu Exp $ # # Copyright (c) Oracle Corporation 2001. All Rights Reserved. # # NAME # pidfile - <one-line expansion of the name> # # DESCRIPTION # Verify that a pid file is accurate. # Options: # <pidfile> The file that has the pid in it. # <process> The name of the process that should be in that slot. # # NOTES # <other useful comments, qualifications, etc.> # # MODIFIED (MM/DD/YY) # xxu 06/25/02 - remove /usr/local/bin/perl # 3 Ash: Changed argument order. # 2 Ash: Updated description for CGI index generation. # 1 Ash: Initial version. # $ENV{PATH} = "/bin:/usr/bin:/usr/sbin:/usr/ucb"; my $process = shift; my $file = shift; my $found = 0; open FILE, "<$file" or die "Unable to read file. [$!]\n"; my $target_pid = <FILE>; chomp $target_pid; # Get list of procs. $DATA = `ps -f -p $target_pid`; if ( $DATA =~ m|[/\s]$process[\s]|) { print "em_result=$file=1|$target_name from $file was found.\n"; } else { print "em_result=$file=0|$target_name from $file was not found.\n"; }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de