07-15-2008
You need a file to remain visible, as in: test for the existence of or list with ls.
But no other process can read or write the file. Then at process exit the file is unlinked and gone forever.
1. each directory in the path the file lives in has to be other execute (world execute)
2. process opens the file, calls flock to gain exclusive read/write. If the processes that need to "see" the file are created by other usernames, open() allows you to set protections like 7-0-0 which means only the given user (or root) can do anything to the file
3. When process is done unlink the file and process exits.
10 More Discussions You Might Find Interesting
1. Solaris
Hello all
I would like to make shift+insert a shortcut for "paste from clipboard".
how do I do it?
where can I find the format to set this key binding, or others?
thanks
Ori (4 Replies)
Discussion started by: orid
4 Replies
2. HP-UX
Hi All,
I would like to know the behaviour of psrset in the following model.
I have a 4 CPU machine on which i have a couple of databases running and a web application running.
supposing i have processers 0 1 2 and 3
I bind processor 0 and 1 to the web application.
This ensures that... (3 Replies)
Discussion started by: nileshkarania
3 Replies
3. IP Networking
i had a problem when using the bind function.. that is when i create a socket and bind it with a address(usually some file name)... when i run it once it goes on fine but the second time it tells a error since there is already a socket file in that name created by my previous run...
but when i... (2 Replies)
Discussion started by: damn_bkb
2 Replies
4. Shell Programming and Scripting
What is the best way to bind files in column wide?
Looks a simple, but I don't know the most economic way.
I tried to merge, and cat function, but not success!!
Ex.)
file 1
1 2 3
2 3 4
file 2
3 4 5
4 5 6
file 3
2 3 4
1 2 7
I would like to see the result below
file 4
1 2 3 3... (2 Replies)
Discussion started by: Jae
2 Replies
5. IP Networking
hi all,
i have an udp based application that doesn't bind to any particular address.
-->while sneding the packets, i have some doubts....
1) can the packet be transmitted with an source ip address as 0.0.0.0
2) if we select an interface based on destination ip address,... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies
6. IP Networking
Hi all,
Application A is using an port number 100 and is binded to an interface 1.
Application B is using an port number 100 and is binded to an interface 2.
can we bind the two applications on same port number based on interfaces.
what i want to know is two... (3 Replies)
Discussion started by: vijaypdp2006
3 Replies
7. Red Hat
Hi,
I'm building an application that would connect to either one of the 2 databases in production. I want to keep the source code common for both environments.
The problem lies in the fact that in the target servers there will be only one of the 2 databases installed, hence the application... (2 Replies)
Discussion started by: ishdeepanand
2 Replies
8. UNIX for Dummies Questions & Answers
I was recently reading a manual of wget and there was command as "binding-address" and I read about tcp/ip binding but i don't understand one thing is...what is the use of binding address in wget..
Can anyone help me with this. (6 Replies)
Discussion started by: jFreak619
6 Replies
9. Shell Programming and Scripting
Hi,
I am rite now made my unix box machine as ftp server that is it acting both ways..Now I have sftp script but when I execute get the following error
ftp: bind: Address already in use
$ From Secure4Access server process at 31-Oct-11 04:52...
Your session is inactive and will... (5 Replies)
Discussion started by: rahul125
5 Replies
10. Shell Programming and Scripting
I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues:
1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies
gcore(1) General Commands Manual gcore(1)
NAME
gcore - get core images of running processes
SYNOPSIS
filename] process-id...
DESCRIPTION
The command creates a core image of each specified process. By default, the name of the core image file for process-id will be The process
information in the core file can be obtained by using debuggers.
When the command creates a core image of each specified process, the process is temporarily stopped. Further, when the creation of core
image is complete, the process continues to execute.
Options
Creates the core file with name of the file as
If multiple process-id values are specified, filename will be common for all the core image files. See the section.
Operands
process-id The process ID for which a core image file will be created.
RETURN VALUE
Upon completion, exits with one of the following values:
A core file was successfully created.
An error condition was encountered.
In such a case, the creation of a core file is not guaranteed. The error conditions could be because of
o A nonexistent or incorrect process ID was specified.
o An invalid option was specified.
o The current working directory of the process or directory from which was invoked had no write permissions.
o The current working directory of the process was not accessible.
o The file system is full.
EXAMPLES
Example 1
Dump the core image of process 1030 in the file "core.1030".
Example 2
Dump the core image of the process 1030 in the file "test.1030".
Example 3
Dump the core image of the processes 1030, 1031, 1032, and 1033 in the files "core.1030", "core.1031", "core.1032", "core.1033".
Example 4
Dump the core image of the processes 1030, 1031, 1032, and 1033 in the files
FILES
Core image file for process-id. (Both where is invoked and the current working directory of the process.)
AUTHOR
was developed by Chris Bertin (HP).
SEE ALSO
adb(1), gdb(1), kill(1), ttrace(2), a.out(4), core(4).
gcore(1)