Hi all
I did something incorrectly about link command.
I try to make a link from a sub-dir to root dir, but I use the following command:
link / zzz
the result is sub-dir "zzz" was linked to "/"
Then I want to remove the "zzz" by using unlink command:
unlink zzz
It say that "Device... (1 Reply)
Hi,
I saw this C program on Unix with
unlink("tmp.log");
unlink("time.log");
at the end of the file.
What's the purpose of doing this?
Thanks a lot! (1 Reply)
Hello all,
I have a script which runs every 15 minutes and moves all but latest 10 files from a directory (A) to Directory (B).
Most of the times this job runs fine but sometimes it is giving "mv: cannot unlink {Target Directory name } : Permissions denied."
Any help about this error msg... (1 Reply)
I was trying to remove a symbolic link of /etc/hosts to /etc/inet/hosts
well i forgot the command and in the /etc directory i did unlink inet and now i can not get into inet and it does not exist in /etc
1) what do i do to fix the inet directory
2) how do i link /etc/hosts to... (1 Reply)
Hello all,
I have the following line:
xxx|xxxx|xxxx|xxx.xx|xxx
And i insert the values in an array. I am trying to find out if the field of the array (where field=xxx.xx) has the '.' character.
I am using the code below but it doesn't seem to work.
if($field=~ /./)
{
... (3 Replies)
We are using Solaris 10 on tiny box. My issue is after server panic cron is not coming up, I've tried to manually restart cron but no luck.
# cron stop
cron could not unlink FIFO: no such file or directory
! cannot create fifo queue Thu Dec 17 11:20:17 2009
! ******* CRON ABORTED *******... (5 Replies)
I had a directory like A/B/C and these are all what I did.
cd A/B/C
ln -s some_path/some_sub_dir/C/* .
After this, I have around say 1000 files linked to my A/B/C directory. How can unlink all those files at one shot? The unlink command requires filename as an argument but what I need is to... (1 Reply)
Hello,
I have a set of directories, which has inside them, symbolic links to some files. What i would like to do is to covert the links into actual files, i.e. remove the link and copy the actual file here...
I tried to see unlink command but i think all it does is delete the link, is... (2 Replies)
I wish to unlink multiple links, but man pages shows
unlink - call the unlink function to remove the specified file
let's linked are in number sequence and I'm doing
unlink `echo {1..500}`
This fails..
Is their any other command to execute it or I need to call the unlink function that... (1 Reply)
Hi,
I have a dir and some files as below (all have full perm)
drwxrwxrwx 2 sam sam 4096 Aug 8 04:31 /home/sam/test
$ ll /home/sam/test
-rwxrwxrwx 1 sam sam 0 Aug 8 04:31 b1_2013_file.txt
-rwxrwxrwx 1 sam sam 0 Aug 8 04:31 c1_2014_file.txtI want to go to this directory and delete the... (2 Replies)
Discussion started by: sam05121988
2 Replies
LEARN ABOUT HPUX
mq_unlink
mq_unlink(2) System Calls Manual mq_unlink(2)NAME
mq_unlink - unlink a message queue
SYNOPSIS DESCRIPTION
The system call disassociates the queue name, from a message queue specified by the argument, name. After a successful call to attempts to
open a message queue with the same name will fail, if the flag is not set in oflags.
If there are no processes with existing open descriptors for the message queue, the queue is destroyed. If one or more processes have the
message queue open, the removal of the queue is postponed until all descriptors for the queue have been closed.
To use this function, link in the realtime library by specifying on the compiler or linker command line.
Security Restrictions
Some or all of the actions associated with this system call are subject to compartmentalization restrictions. See compartments(5) for more
information.
Some or all of the actions associated with this system call require privileges. See privileges(5).
RETURN VALUE
returns the following values:
Successful completion.
Failure,
is set to indicate the error.
ERRORS
If fails, is set to one of the following values:
[EACCES] Permission to unlink the named message queue is denied.
[EINVAL] The argument name is not a valid message queue name.
[ENAMETOOLONG] The length of the name string exceeds bytes, or the length of a (pathname) component of the name string exceeds bytes
while is in effect.
[ENOENT] The named message queue does not exist.
[ENOSYS] is not supported by the implementation.
SEE ALSO mq_open(2), mq_close(2), compartments(5), privileges(5).
STANDARDS CONFORMANCE mq_unlink(2)