08-28-2019
Hi MadeInGermany...
Thanks for that info, 'system("command")' removed and your 'unlink...' line inserted in its place...
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know about next to nothing, and I am trying to play an audio file on HP-UX 10.2 (743i) every time I try to use the ‘/opt/audio/bin/AudioCP &' command I get an error message that says “Unable to access audio hardware.” I checked the man page on audio, and both Aserver and rpcd are running. Am I... (4 Replies)
Discussion started by: Matt
4 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I play audio through the web browser and it plays ok on windows. When i try the same thing on unix i get the error message "sh: /usr/local/bin/sox: not found. I've tried 'locate sox' and can't seem to find it. Is there some way I can change the browser settings so they play the audio... (3 Replies)
Discussion started by: molli_81
3 Replies
3. UNIX for Advanced & Expert Users
Hello all,
Could anyone help to me :as to how can i record an audio file in unix and convert it into a text . Or anything with audio recording to get started would help .
thanks, (3 Replies)
Discussion started by: phantom308
3 Replies
4. UNIX for Dummies Questions & Answers
Hi I recently installed BT 5 Gnome on my Asus laptop running on Intel HD graphics.
I've been having problems with audio, at first I experienced the basic problem that was solved by adding pulse audio to the starting programs. This allowed me to open Sound preferences but I still have no sound.... (0 Replies)
Discussion started by: edreeso
0 Replies
5. Slackware
I'm trying to record audio using Audacity 2.0.5 installed from SlackBuilds. My system is 64-bit Slackware 14.1 and a sound card is Intel HD Audio. I didn't change my sound system to OSS. (Default sound system in Slackware 14.1 is ALSA, isn't it?) First, I set Internal Microphone slider in KMix... (2 Replies)
Discussion started by: qzxcvbnm
2 Replies
6. OS X (Apple)
Ok guys, gals and geeks...
As from today I am starting to learn awk in earnest doing something totally different.
I am going to create a pseudo-Audio_Function Generator centred around OSX 10.11.x minimum. The code below is a tester to see what the possibilities are.
All waveforms will be... (11 Replies)
Discussion started by: wisecracker
11 Replies
LEARN ABOUT NETBSD
unlink
UNLINK(2) BSD System Calls Manual UNLINK(2)
NAME
unlink -- remove directory entry
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
unlink(const char *path);
DESCRIPTION
The unlink() function removes the link named by path from its directory and decrements the link count of the file which was referenced by the
link. If that decrement reduces the link count of the file to zero, and no process has the file open, then all resources associated with the
file are reclaimed. If one or more process have the file open when the last link is removed, the link is removed, but the removal of the
file is delayed until all references to it have been closed.
RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
The unlink() succeeds unless:
[EACCES] Search permission is denied for a component of the path prefix, or write permission is denied on the directory containing
the link to be removed.
[EBUSY] The entry to be unlinked is the mount point for a mounted file system.
[EFAULT] path points outside the process's allocated address space.
[EIO] An I/O error occurred while deleting the directory entry or deallocating the inode.
[ELOOP] Too many symbolic links were encountered in translating the pathname.
[ENAMETOOLONG] A component of a pathname exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters.
[ENOENT] The named file does not exist.
[ENOTDIR] A component of the path prefix is not a directory.
[EPERM] The named file is a directory and the effective user ID of the process is not the super-user, the file system containing
the file does not permit the use of unlink() on a directory, or the directory containing the file is marked sticky, and
neither the containing directory nor the file to be removed are owned by the effective user ID.
[EROFS] The named file resides on a read-only file system.
SEE ALSO
close(2), link(2), rmdir(2), symlink(7)
STANDARDS
The unlink() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1'').
HISTORY
An unlink() function call appeared in Version 2 AT&T UNIX.
BSD
April 3, 2010 BSD