01-27-2007
The same process, or a different PID each time? What is the parent process?
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I have a situation, where I have 10 indivudal processess started by similar instance.I say similar instance because each of them being started as a new thread:
Say I've following unix process running
process1_ADAP
process2_ADAP
process3_ADAP
Current scenario:
Now I have SHUTDOWN... (5 Replies)
Discussion started by: braindrain
5 Replies
2. Shell Programming and Scripting
Hi there,
I have written a script to check daily process,
each script is in a different directory.
Now the first process is running fine, when it goes to the next directory the process doesn't executes.
cd result/logs
ref=month_1888.log
echo $ref>> $logfile
cd /max/tot/first... (3 Replies)
Discussion started by: NehaKrish
3 Replies
3. Shell Programming and Scripting
I have this "process keepalive" script:
#!/bin/bash
PIDFILE=/tmp/php.pid
PHPSCRIPT=/home/www/mydomain.com/subdomains/www/parser.php
echo 'Checking php process from PID file'
if ; then
PID=`cat $PIDFILE`
if ps ax | grep -v grep | grep $PID > /dev/null
then
echo "php process still... (4 Replies)
Discussion started by: LukasB
4 Replies
4. UNIX for Dummies Questions & Answers
I have the following log file running since yesterday and its consuming so much of the disk space.
-rw-rw-r-- 1 dev dba 4543237120 Nov 10 09:00 load_run_file1_0.1111091224.lg
How do i kill this process. I don't have any idea of stopping this. Any help would be really appreciated.
... (3 Replies)
Discussion started by: bobby1015
3 Replies
5. Shell Programming and Scripting
Hi all,
I have tried the below code to execute.
#! /bin/bash
date1=`date -d "today 08:00:00" +%s`
date2=`date -d "today 08:01:00" +%s`
path=/home/user01/red/IDC/sample
cd $path
java Cspsamp 111.19.5.172 7025 rd1 rd1 "5022=Query|5026=109378|4=627|5=E:VD|5042=$date1|5049=$date2"... (5 Replies)
Discussion started by: aish11
5 Replies
6. Shell Programming and Scripting
Hi, I have a parallelized Mathematica program that spans across 8 MathKernels processes running at 100% and one MathKernel (highlighted in blue) running at < 10% that controls the other 8. They look like this on the cluster:
https://www.unix.com/attachment.php?attachmentid=5111&stc=1&d=1381245618... (2 Replies)
Discussion started by: giovform
2 Replies
7. UNIX for Dummies Questions & Answers
Hi Gurus,
I am debugging a script. it loops filelist. since the list a very long. when debugging, I only can see the last a few lines. is there any way to stop debuger in the mid of process.
the command I used for debugging is:
ksh -x scriptName
Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies
8. Red Hat
This issue could happen to any other service but in this case its commssioning Postfix - it seems i can't stop postfix as the PID relates to another service - i've delete the 'master.lock' but to no available - any ideas, memeory commands etc ?
thanks in advance
ps. the serve is in Production so... (2 Replies)
Discussion started by: stevie_velvet
2 Replies
SECON(1) NSA SECON(1)
NAME
secon - See an SELinux context, from a file, program or user input.
SYNOPSIS
secon [-hVurtscmPRfLp] [CONTEXT]
[--file] FILE
[--link] FILE
[--pid] PID
DESCRIPTION
See a part of a context. The context is taken from a file, pid, user input or the context in which secon is originally executed.
-V, --version
shows the current version of secon
-h, --help
shows the usage information for secon
-P, --prompt
outputs data in a format suitable for a prompt
-C, --color
outputs data with the associated ANSI color codes (requires -P)
-u, --user
show the user of the security context
-r, --role
show the role of the security context
-t, --type
show the type of the security context
-s, --sensitivity
show the sensitivity level of the security context
-c, --clearance
show the clearance level of the security context
-m, --mls-range
show the sensitivity level and clearance, as a range, of the security context
-R, --raw
outputs the sensitivity level and clearance in an untranslated format.
-f, --file
gets the context from the specified file FILE
-L, --link
gets the context from the specified file FILE (doesn't follow symlinks)
-p, --pid
gets the context from the specified process PID
--pid-exec
gets the exec context from the specified process PID
--pid-fs
gets the fscreate context from the specified process PID
--current, --self
gets the context from the current process
--current-exec, --self-exec
gets the exec context from the current process
--current-fs, --self-fs
gets the fscreate context from the current process
--parent
gets the context from the parent of the current process
--parent-exec
gets the exec context from the parent of the current process
--parent-fs
gets the fscreate context from the parent of the current process
Additional argument CONTEXT may be provided and will be used if no options have been specified to make secon get its context from another
source. If that argument is - then the context will be read from stdin.
If there is no argument, secon will try reading a context from stdin, if that is not a tty, otherwise secon will act as though --self had
been passed.
If none of --user, --role, --type, --level or --mls-range is passed. Then all of them will be output.
SEE ALSO
chcon (1)
AUTHORS
James Antill (james.antill@redhat.com)
Security Enhanced Linux April 2006 SECON(1)