05-26-2009
Quote:
Originally Posted by
fpmurphy
Can you be more specfic? By 'invalid argument" do you mean EINVAL? What command (i.e the 3rd argument to semctl()) were you attempting?
Thanks for your reply!!!! I have solved my problem. Actually the kernel of my server has a lots of semafore. So I can not create new semafore. I have used the command ipcrm -s <semafore id> to remove some of the semafore.
After this it worked fine.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Everyone;
I have a script that is throwing the following message:
stty: : Invalid argument
The line that gives the message is the following,
sailormoon$ scp home/voice.xml newwave@silvermoon:/newwave/config/radius
stty: : Invalid argument
voice.xml | ... (2 Replies)
Discussion started by: tony3101
2 Replies
2. Solaris
I want to figure out what is the reason of error message I have in Solaris 10. Why Solaris 10 dosn't recognize 65535?
ps: 65535 is an invalid non-numeric argument for -p option
usage: ps
'format' is one or more of:
Thank you (5 Replies)
Discussion started by: gogogo
5 Replies
3. Programming
the code is below and the was run on Solaris 9.
-----------------------------
struct sched_param param;
param.sched_priority = 99;
if(sched_setscheduler(0, SCHED_RR, ¶m) == -1)
{
perror("setting priority");
exit(1);
}
-------------------------------
after the... (1 Reply)
Discussion started by: robin.zhu
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Please guide me how to get rid :
msgrcv : Invalid argument.
I am using message queues: msgsnd and msgrcv,
I am able to send through msgsnd and receive through msgrcv, but at times i get the belo error.
msgrcv : Invalid argument. (1 Reply)
Discussion started by: answers
1 Replies
5. Solaris
I tried to install glassfish on Solaris 10 and it worked fine on other instances. I got the below message
bash-3.00# ./sjsas-9_1_01-solaris-sparc.bin -console
bash: ./sjsas-9_1_01-solaris-sparc.bin: Invalid argument
I logged on as root and the file has execute permission. So strange. Do... (1 Reply)
Discussion started by: Andrew2008
1 Replies
6. IP Networking
Hi
I lost a lot of time in understanding the message "sendto Invalid argument" when I execute the following code.
This code is a simple UDP sender improved with some reliability feature.
My goal is to send a file. I've reported only the code which may be useful.
Can anyone help me?
Thank you... (0 Replies)
Discussion started by: Puntino
0 Replies
7. UNIX for Dummies Questions & Answers
OK...I'm using the latest version of Fedora 10.
My network connection was working fine, and I had several network LAN shares on my desktop. Then I rebooted the system without dismounting those shares first. ooops. <:(
...When the system came back up, my network connection was gone. All... (2 Replies)
Discussion started by: Pudnik
2 Replies
8. Programming
Hello everybody,
I've been programming an alternative to linux's standard 'arp' program. I can delete arp entries (SIOCDARP), get arp entries (SIOCGARP), but i'm having troubles setting entries with ioctl.
I can't set any PERM, USETRAILERS, or COM address. It only adds PUB entries and i don't... (2 Replies)
Discussion started by: semash!
2 Replies
9. UNIX for Advanced & Expert Users
Hi Guru's,
I am unable to mount NFS share on unix system (DG/UX) which is nfs client.
Error:
mount: /nfsshare: Invalid argument
mount: giving up on:
/mountpoint
i tried following command
mount -t nfs remotehost:/nfsshare /mountpoint
Error: (5 Replies)
Discussion started by: Justin John
5 Replies
10. UNIX for Beginners Questions & Answers
hi
i have an android phone which i think is bricked, so wanted to see what the actual issue is, I flashed it with TWRP recovery image and launched terminal i, was able understand that mount is not happening, it says invalid argument and no such file or directory. Below is what i get while... (32 Replies)
Discussion started by: nanz143
32 Replies
IPCRM(1) Linux Programmer's Manual IPCRM(1)
NAME
ipcrm - remove a message queue, semaphore set or shared memory id
SYNOPSIS
ipcrm [ -M key | -m id | -Q key | -q id | -S key | -s id ] ...
deprecated usage
ipcrm {shm|msg|sem} id...
DESCRIPTION
ipcrm removes System V interprocess communication (IPC) objects and associated data structures from the system. In order to delete such
objects, you must be superuser, or the creator or owner of the object.
System V IPC objects are of three types: shared memory, message queues, and semaphores. Deletion of a message queue or semaphore object is
immediate (regardless of whether any process still holds an IPC identifier for the object). A shared memory object is only removed after
all currently attached processes have detached (shmdt(2)) the object from their virtual address space.
Two syntax styles are supported. The old Linux historical syntax specifies a three letter keyword indicating which class of object is to
be deleted, followed by one or more IPC identifiers for objects of this type.
The SUS-compliant syntax allows the specification of zero or more objects of all three types in a single command line, with objects speci-
fied either by key or by identifier. (See below.) Both keys and identifiers may be specified in decimal, hexadecimal (specified with an
initial '0x' or '0X'), or octal (specified with an initial '0').
OPTIONS
-M shmkey
removes the shared memory segment created with shmkey after the last detach is performed.
-m shmid
removes the shared memory segment identified by shmid after the last detach is performed.
-Q msgkey
removes the message queue created with msgkey.
-q msgid
removes the message queue identified by msgid.
-S semkey
removes the semaphore created with semkey.
-s semid
removes the semaphore identified by semid.
The details of the removes are described in msgctl(2), shmctl(2), and semctl(2). The identifiers and keys may be found by using ipcs(1).
NOTES
In its first Linux implementation, ipcrm used the deprecated syntax shown in the SYNOPSIS. Functionality present in other *nix implementa-
tions of ipcrm has since been added, namely the ability to delete resources by key (not just identifier), and to respect the same command-
line syntax. For backward compatibility the previous syntax is still supported.
SEE ALSO
ipcs(1), ipcmk(1), msgctl(2), msgget(2), semctl(2), semget(2), shmctl(2), shmdt(2), shmget(2), ftok(3)
AVAILABILITY
The ipcrm command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
ipcrm last change: 19 March 2002 IPCRM(1)