12-25-2002
Quote:
Originally posted by RTM
Not sure what you are looking for. I've never found the need to create links in a script. For information on how to create a link, read the man page for ln. Post back with further info on specifics of what you are attempting.
Thanks.I was just trying to gain knowledge over these link files.
10 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
Link describe the Step by step formation of Unix
http://perso.wanadoo.fr/levenez/unix/
Also:
- History
- Author of First Unix C Language
- Unix Family research Tree
- BSD and Sun History chart
- Technical Comparison between Unix Diffrences (4 Replies)
Discussion started by: killerserv
4 Replies
2. UNIX for Dummies Questions & Answers
Does any one now if you can change permissions on a linked file with out completely removing it and then relinking it? (2 Replies)
Discussion started by: moviestud80
2 Replies
3. UNIX for Dummies Questions & Answers
How do you identify the type of a link in the output of the ls -l command? (1 Reply)
Discussion started by: Tom Bombadil
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Can any one please explain me what is the difference between hard link and soft link in UNIX.
Thanks in advance
Raja Chokalingam. (2 Replies)
Discussion started by: RAJACHOKALINGAM
2 Replies
5. Shell Programming and Scripting
if I have 1000 files, named file1, file2, ... ,file1000. for each one, I want to append a line, for example "this is the end of file#".
then, I want to link them all together.
how can I do that by using a simple script? (1 Reply)
Discussion started by: fredao
1 Replies
6. Solaris
how to make link command by c language (2 Replies)
Discussion started by: ma7moudax
2 Replies
7. Shell Programming and Scripting
How to find the link files. i have main file, now i want to find all the files linked to it. (4 Replies)
Discussion started by: aju_kup
4 Replies
8. UNIX for Advanced & Expert Users
Hi there,
Our vendor needs to have access to some files on our AIX box1, but we don't want them to have access to this box at all.
We allow them to have access/logon to another AIX box2, is that possible that I create a symbolic link in box2 to point to those box1 log/config files ? How?... (1 Reply)
Discussion started by: TheGunMan
1 Replies
9. Solaris
How do I nullify a zero link file.
Please help me (0 Replies)
Discussion started by: bluenavi
0 Replies
10. UNIX for Dummies Questions & Answers
how do i nullify zero link files under /proc
please help me (4 Replies)
Discussion started by: bluenavi
4 Replies
LEARN ABOUT SUNOS
endusershell
getusershell(3C) Standard C Library Functions getusershell(3C)
NAME
getusershell, setusershell, endusershell - get legal user shells
SYNOPSIS
#include <unistd.h>
char *getusershell(void);
void setusershell(void);
void endusershell(void);
DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If
/etc/shells does not exist, the following locations of the standard system shells are used in its place:
/bin/bash /bin/csh
/bin/jsh /bin/ksh
/bin/pfcsh /bin/pfksh
/bin/pfsh /bin/sh
/bin/tcsh /bin/zsh
/sbin/jsh /sbin/pfsh
/sbin/sh /usr/bin/bash
/usr/bin/csh /usr/bin/jsh
/usr/bin/ksh /usr/bin/pfcsh
/usr/bin/pfksh /usr/bin/pfsh
/usr/bin/sh /usr/bin/tcsh
/usr/bin/zsh /usr/xpg4/bin/sh
The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells.
The setusershell() function rewinds the file or the list.
The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells.
RETURN VALUES
The getusershell() function returns a null pointer on EOF.
BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved.
SunOS 5.10 30 Aug 2004 getusershell(3C)