I have a samba server node and I want to mount the samba (CIFS) shares from a second (client) unix machine.
However, the unix mount command requires I specify the name of the share. What if I don't know the name of the share?
How can I enumerate all the shares from the samba client machine?
... (1 Reply)
Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go?
Thank you
Richard (4 Replies)
Hi
Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages.
Any free tools or scripts to do this?
Many thanks. (2 Replies)
Hi all,
I want to write a program in C that can enumerate all USB massand their mount point storage on my system. i want to give ability to copy one file to desired USB mass storage or read a file from it. I have posted another question about how can recieve USB arrival in this forum.
I think... (0 Replies)
Hi, I'm using normally ls -l to get the content of a directoy.
But, it's possible to enumerate the ls output ? (like put the line number at the begining of each line)
If it wasn't possible (I don't hope so ...), there's a way to get the line number the line had after doing a grep:
ls -l... (8 Replies)
I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time.
Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Hi.
I'm new to scripting / programming and was wondering what the best way to output all mounted storage devices and their names to an array would be ? I would like to achieve this using the bash shell.
Any assistance with this would be greatly appreciated.
Regards,
Jonno :b: (4 Replies)
Hi,
I have the following data:
This this DT 0.99955 0 4
is be VBZ 1 5 7
sentence sentence NN 0.916667 8 16
one one NN 0.545078 17 20
. . Fp 1 20 21
This this DT 0.99955 22 26
is be VBZ 1 27 29
the the DT 1 30 33
second 2 JJ 0.930556 34 40
sentence sentence NN 0.916667 41 49... (1 Reply)
HI,
I need to find out what are all the hard disks connected in my System on Solaris?
Also on my system when I ran the command prtconf, the following output is displayed.
sd (driver not attached)
st (driver not attached)
sd, instance #0 (driver not attached)
sd, instance... (1 Reply)
Discussion started by: rajujayanthy
1 Replies
LEARN ABOUT REDHAT
readdir
READDIR(3) Linux Programmer's Manual READDIR(3)NAME
readdir - read a directory
SYNOPSIS
#include <sys/types.h>
#include <dirent.h>
struct dirent *readdir(DIR *dir);
DESCRIPTION
The readdir() function returns a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by
dir. It returns NULL on reaching the end-of-file or if an error occurred.
According to POSIX, the dirent structure contains a field char d_name[] of unspecified size, with at most NAME_MAX characters preceding the
terminating null character. Use of other fields will harm the portability of your programs. POSIX-2001 also documents the field ino_t
d_ino as an XSI extension.
The data returned by readdir() may be overwritten by subsequent calls to readdir() for the same directory stream.
RETURN VALUE
The readdir() function returns a pointer to a dirent structure, or NULL if an error occurs or end-of-file is reached.
ERRORS
EBADF Invalid directory stream descriptor dir.
CONFORMING TO
SVID 3, POSIX, BSD 4.3
SEE ALSO read(2), closedir(3), dirfd(3), opendir(3), rewinddir(3), scandir(3), seekdir(3), telldir(3)
1996-04-22 READDIR(3)