Sponsored Content
Full Discussion: whats setenv in unix
Top Forums UNIX for Dummies Questions & Answers whats setenv in unix Post 302201816 by sysgate on Tuesday 3rd of June 2008 08:06:55 AM
Old 06-03-2008
In C shell sets the value of an environment variable, example :
Code:
setenv PATH "/bin:/usr/bin:/usr/sbin:ucb/bin"

which sets the environment path to search for files in the /bin, /usr/bin, /usr/sbin and ucb/bin directory.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Whats the dif between AIX and UNIX?

Hi, sorry to ask and exceedingly dumb question, but as far as UNIX goes I really am the newbiest of the newbies. I've been posed a question by one of my bosses, I'll break it down. He says "We have a big AIX box and I'd like to use Notes to handle the SMTP side of things." I say, "Okay I... (2 Replies)
Discussion started by: SlyClone2k
2 Replies

2. Shell Programming and Scripting

Whats the Vhost Command for the Unix Shell

anyone know? would be greatly thankful. (4 Replies)
Discussion started by: shellnewbie
4 Replies

3. UNIX for Dummies Questions & Answers

Unix? Whats that

Hi, I am curently running Windows. Don't laugh. Unix is a OS right? I am thinking about getting it but am not sure about geting Unix or Linux. I could use all the help I can get, Thanks! (6 Replies)
Discussion started by: DamienVryce
6 Replies

4. Programming

whats the command in unix

what is the command to print the text in a specifed location eg i have text ("i am here"); i have to print it on location 20,20 wat is the command and which header file it uses i am currentlr working in solaris 5.8 using unix (1 Reply)
Discussion started by: ramneek
1 Replies

5. UNIX for Dummies Questions & Answers

Linux OR Unix Whats The Difference!

What is the difference bettween linux and unix? Sorry but I am really new to this! :confused: Also are they BOTH free :-D (1 Reply)
Discussion started by: jamesthemagicia
1 Replies

6. UNIX for Dummies Questions & Answers

Whats the latest verson of Unix?

Also can unix be downloaded? Thank you, Nic (2 Replies)
Discussion started by: nicjr3
2 Replies

7. UNIX for Dummies Questions & Answers

Whats is the user of $ and # in UNIX ???

Whats is the user of $ and # in UNIX ??? (2 Replies)
Discussion started by: Paynemax
2 Replies

8. UNIX for Advanced & Expert Users

Whats the fastest UNIX compression utility you know of.

Hi everyone, Just interested to know everyones opinions on the fastest unix compression utility with okejish compression (doesnt have to have awsome compression). I know of gzip bzip2 (sucks lol) and a couple of others but what is a great one for compression large amounts of data that wont eat... (8 Replies)
Discussion started by: aleks001
8 Replies

9. UNIX for Advanced & Expert Users

setenv.

helllo every body .. hope you are having good time programming in unix . here is a little problem faced me : setenv("myvar","bla bla",1); system("myvar=$(grep....)); printf("%s\n", getenv("myvar")); will print : bla bla .. how can i get the value of grep into my program ? ... (7 Replies)
Discussion started by: max_475
7 Replies

10. Programming

Whats the most in-demand programming language UNIX

I am interested in learning Programming Language to complement my UNIX. What language should I concentrate on to enhance my UNIX. What companies are seeking with UNIX. What languages are used with UNIX as for as there application. Are there any one here from DC (6 Replies)
Discussion started by: zbest1966
6 Replies
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)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy