Sponsored Content
Top Forums Programming utime returning -1 BAD File DEscriptor Post 302490622 by Corona688 on Tuesday 25th of January 2011 10:06:46 AM
Old 01-25-2011
A message queue is not a file. You can't call utimes() on it.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

bad file descriptor?

Ok, I'm sure this is a total newbie question, but I think I'm in the right place, no? I'm trying to call a perl module from a cgi script - Mail::Sendmail - and my web host installed the module in a directory that doesn't seem to be accessible, at least not the way I'm trying. But I thought you... (1 Reply)
Discussion started by: ftb
1 Replies

2. Shell Programming and Scripting

Utime Command

Hello ! Do you have any example of the utime command ? I'm trying to change the time of last change of a file to a defined time. Thanks. (3 Replies)
Discussion started by: margue
3 Replies

3. Programming

equivalent to utime

Hi, Is there any system call which changes the time of symbolic link apart from utime? or if tere is no system call any other option of how to do it? Thanks (4 Replies)
Discussion started by: naan
4 Replies

4. UNIX for Advanced & Expert Users

Script to search a bad record in a file then put the record in the bad file

I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file. Example: File1 Name designation dateOfJoining... (1 Reply)
Discussion started by: shilendrajadon
1 Replies

5. Shell Programming and Scripting

Script to search a bad record in a file then put the record in the bad file

I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file. Example: File1 Name designation dateOfJoining... (2 Replies)
Discussion started by: shilendrajadon
2 Replies

6. Ubuntu

ufsdump from Solaris to ubuntu fails with bad file descriptor

Hi All I have a dedicated backup server running ubuntu 10.04, which has recently been rebuilt (same OS, just different h/w) This is used to receive ufsdump output from a number of Solaris servers, using the following syntax: ufsdump 1uf :/path/to/backup/file /fs/to/be/backed/up This has... (1 Reply)
Discussion started by: in2deep
1 Replies

7. UNIX for Dummies Questions & Answers

Find command returning bad status--

would like to remove the post (8 Replies)
Discussion started by: vk39221
8 Replies

8. Shell Programming and Scripting

Error in the o/p says bad file descriptor...

grt=`sort -nr line_count.txt|head -1` while read $dline do if $grt" -eq "`wc -l combo_operncount.$dline|awk '{print $1}'`" ] then awk -F, '{print $1}' combo_operncount.$dline > FULLD7 else echo combo_operncount.$dline >> filecoll.txt fname=`cat filecoll.txt|tr -s "\n" " "` echo $fname... (6 Replies)
Discussion started by: nikhil jain
6 Replies

9. Solaris

Bad exchange descriptor : not able to remove files under zpool

Hi , One of my zone went down and when i booted it up i could see the pool in degraded state with some check sum errors . we have brought the pool online after scrubbing. But few files are showing this error Bad exchange descriptor Please let me know how to remove these files (2 Replies)
Discussion started by: chidori
2 Replies

10. UNIX for Beginners Questions & Answers

Bad file descriptor - error with sed

I'm learning SED command. And while doing that i got to this place where i'm taking a copy of my existing file. The code i used is - sed -n '/Storm/ w Storm.txt' books.txt As expected, the file 'books.txt' is read , and lines with 'Storm' is put in to the new file 'Storm.txt'. However, it also... (4 Replies)
Discussion started by: justo
4 Replies
MSG_STAT_QUEUE(3)							 1							 MSG_STAT_QUEUE(3)

msg_stat_queue - Returns information from the message queue data structure

SYNOPSIS
array msg_stat_queue (resource $queue) DESCRIPTION
msg_stat_queue(3) returns the message queue meta data for the message queue specified by the $queue. This is useful, for example, to deter- mine which process sent the message that was just received. PARAMETERS
o $queue - Message queue resource handle RETURN VALUES
The return value is an array whose keys and values have the following meanings: Array structure for msg_stat_queue +--------------+---------------------------------------------------+ | | | |msg_perm.uid | | | | | | | The uid of the owner of the queue. | | | | | | | |msg_perm.gid | | | | | | | The gid of the owner of the queue. | | | | | | | |msg_perm.mode | | | | | | | The file access mode of the queue. | | | | | | | | msg_stime | | | | | | | The time that the last message was sent to the | | | queue. | | | | | | | | msg_rtime | | | | | | | The time that the last message was received from | | | the queue. | | | | | | | | msg_ctime | | | | | | | The time that the queue was last changed. | | | | | | | | msg_qnum | | | | | | | The number of messages waiting to be read from | | | the queue. | | | | | | | | msg_qbytes | | | | | | | The maximum number of bytes allowed in one mes- | | | sage queue. On Linux, this value may be read and | | | modified via /proc/sys/kernel/msgmnb. | | | | | | | | msg_lspid | | | | | | | The pid of the process that sent the last mes- | | | sage to the queue. | | | | | | | | msg_lrpid | | | | | | | The pid of the process that received the last | | | message from the queue. | | | | +--------------+---------------------------------------------------+ SEE ALSO
msg_remove_queue(3), msg_receive(3), msg_get_queue(3), msg_set_queue(3). PHP Documentation Group MSG_STAT_QUEUE(3)
All times are GMT -4. The time now is 11:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy