09-27-2010
Can you detail what the processes p? are written in ? What O/S are they running on, and are they script, or do you have code ?
For example in script, linux has a "lockfile" command that could help in this instance.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Can someone help me with writing a unix script for following requirement
1) I have a log file in which we have start time and end time (format: hh:mm:ss)
Example: starting script on Thu Jun 5 20:50:52
Thu Jun 5 21:55:33 - Script Completed
2) I want to extract start time and end time of... (0 Replies)
Discussion started by: santosham
0 Replies
2. Shell Programming and Scripting
Can someone help me with writing a unix script for following requirement
1) I have a log file in which we have start time and end time (format: hh:mm:ss)
Example: starting script on Thu Jun 5 20:50:52
Thu Jun 5 21:55:33 - Script Completed
2) I want to extract start time and end time of... (0 Replies)
Discussion started by: santosham
0 Replies
3. UNIX for Dummies Questions & Answers
Can someone help me with writing a unix script for following requirement
1) I have a log file in which we have start time and end time (format: hh:mm:ss)
Example: starting script on Thu Jun 5 20:50:52
---------
Thu Jun 5 21:55:33 - Script Completed
2) I want to extract... (4 Replies)
Discussion started by: santosham
4 Replies
4. Shell Programming and Scripting
Hello guys,
Look what im doing:
I need to run a process from a SERVER1 to SERVER2, SERVER3 and SERVER4.
The shell of the process is in each SERVER (2 to 4)
So from SERVER1 i do:
for i in SERVER2 SERVER3 SERVER4
do
rsh $i '
./process.sh
'
done
The problem is: each process.sh... (2 Replies)
Discussion started by: lestat_ecuador
2 Replies
5. Shell Programming and Scripting
When I run <ls -l> to get a list of all the files, I want the displayed result to be written to a text file. Is there a way to do that? (1 Reply)
Discussion started by: kn.naresh
1 Replies
6. UNIX for Advanced & Expert Users
Hi ,
when a process fails to write to /dev/log ? (1 Reply)
Discussion started by: Gopi Krishna P
1 Replies
7. UNIX for Advanced & Expert Users
If we have 3 process to write to same log file at the same time like below. will it cause the data outdated because the multiple process writing same time? It this a safe way to keep the log for multiple process?
p1 >> test.log &;
p2 >> test.log &;
p3 >> test.log &
Thanks, (1 Reply)
Discussion started by: casttree
1 Replies
8. Shell Programming and Scripting
Hi there,
I would write a bash script to format then create a range of folder (folder name is number) to a usb stick.
for numbers in $(seq -w 001 999)
do
pause "Press any key to start"
mkfs.vfat -F32 /dev/sdc1
mount /dev/sdc1 /media/usb
mkdir /media/$numbers
umount /dev/sdc1... (8 Replies)
Discussion started by: wayneliao38
8 Replies
9. Shell Programming and Scripting
Hello Team-
we would like to implement an approach which has to write the log file simultaneously
when .sql file is executing by Unix process. At present,it is writing the log file
once the process is completed. I've tested the current process with the below
approaches and none of them... (1 Reply)
Discussion started by: Hima_B
1 Replies
10. Shell Programming and Scripting
Here is my test code
process = sp.Popen( + ,
bufsize=1,
universal_newlines=True,
stdout=sp.PIPE, stderr=sp.STDOUT,
cwd=src_home)
output, _ =... (2 Replies)
Discussion started by: ezee
2 Replies
LEARN ABOUT HPUX
cmhaltserv
cmhaltserv(1m) cmhaltserv(1m)
NAME
cmhaltserv - halt a service from the high availability package halt script
SYNOPSIS
cmhaltserv [-v] service_name
DESCRIPTION
cmhaltserv is used only in the high availability package halt script to halt a service.
To stop a package service, the running package halt script must be running as superuser(UID=0), or as a user with access policy of
FULL_ADMIN allowed in the cluster configuration file. See access policy in cmquerycl(1) or cmmakepkg(1).
If any part of a package is marked down, the package halt script is executed as part of the recovery process.
This command sends a SIGTERM signal to the PID and the corresponding process group of the monitored service. If this signal is caught by
the running application, it is up to the application to ensure that the processes will be terminated.
Options
cmhaltserv supports the following options:
-v Verbose output will be displayed.
RETURN VALUE
cmhaltserv returns the following values:
0 Successful completion.
1 Command failed.
EXAMPLES
To halt the service db1, do the following:
# Halt the service db1
cmhaltserv db1
This line should only be executed within a package halt script.
AUTHOR
cmhaltserv was developed by HP.
SEE ALSO
cmmakepkg(1m), cmquerycl(1m), cmmodnet(1m), cmrunserv(1m).
Requires Optional Serviceguard Software cmhaltserv(1m)