I think I may have it figured out. Is this correct:
to check if a file is world-readable and return an error if it's not? That's really the only permission I care about.
Hi folks.
I'm just starting to teach myself shell scripting and am having some trouble with an if statement. I am working with a directory where only one file will reside at a time and need to evaluate if this file is compressed to determine subsequent steps. I'm using echo for testing purposes.... (2 Replies)
Hi,
I found this strange behaviour while using one of the makefiles.
Here is the snippet of the unix.mak that is necessary for this context
SO = SvSocket.o SvStmt.o SvOdbcWrapper.o \
OdbcCallReader.o MgrCalls.o OdbcSvProxy.o \
OdbcSvApp.o... (4 Replies)
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
hello everybody!
I want to create a file with permissions for read, write, and execute to everybody using C, so I write this code:
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(){
int fileDescriptor;
fileDescriptor =... (2 Replies)
hello everybody and a happy new year!
i am trying the client-server model...i have no problem with sockets etc...
especially for server:there is a father who is listening for TCP connections from clients,the later send commands which parent shares to his children.
then children execute... (1 Reply)
Hi there,
I need your help in understanding the below Solaris 10 ifconfig output;
athnetspns02>ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0:... (2 Replies)
Hi,
I have a file with few values in it. I need script help to read file line by line and check:
1/if it's a file (with extension eg .java .css .jar etc )
or
2/if it's a file without extension and treat it as a directory and then check if the directory exists in working copy else create one... (6 Replies)
Discussion started by: iaav
6 Replies
LEARN ABOUT PHP
msg_get_queue
MSG_GET_QUEUE(3) 1 MSG_GET_QUEUE(3)msg_get_queue - Create or attach to a message queueSYNOPSIS
resource msg_get_queue (int $key, [int $perms = 0666])
DESCRIPTION msg_get_queue(3) returns an id that can be used to access the System V message queue with the given $key. The first call creates the mes-
sage queue with the optional $perms. A second call to msg_get_queue(3) for the same $key will return a different message queue identifier,
but both identifiers access the same underlying message queue.
PARAMETERS
o $key
- Message queue numeric ID
o $perms
- Queue permissions. Default to 0666. If the message queue already exists, the $perms will be ignored.
RETURN VALUES
Returns a resource handle that can be used to access the System V message queue.
SEE ALSO msg_remove_queue(3), msg_receive(3), msg_send(3), msg_stat_queue(3), msg_set_queue(3).
PHP Documentation Group MSG_GET_QUEUE(3)