11-24-2003
At the OK prompt type "setenv auto-boot? true" (without the quotes)
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
When i try to boot my solaris 2.6 E220R server, i get this error message
> INIT: cannot create /var/adm/utmp or /var/adm/utmpx
>INIT: failed write of utmpx entry:" "
>INIT: failed write of utmpx entry:" "
INIT Single User Mode
Press Ctrl-d for normal boot process or enter roots password... (10 Replies)
Discussion started by: lealyz
10 Replies
2. Solaris
My Solaris machine is not booting.It just stops at the point
Boot device: /pci@1e,600000/ide@d/disk@0,0:a File and args:
Whether i try boot or boot -s it is stopping at this point..
I tried boot cdom -s.It went into single user mode but I am not able to run a fsck in this mode.
Right... (1 Reply)
Discussion started by: lydiaEd
1 Replies
3. Solaris
Hell All,
I have installed Solaris10 on my PC (Intel Celeron Processor, Intel Motherboard with builtin video and audio), STAT hard disk, 1GB DDR2 RAM.
After finishinig of installation, there is a reboot session comes, and after reboot there comes GRUB. And then when I press entor to solaris to... (3 Replies)
Discussion started by: aburaihanxp
3 Replies
4. Solaris
Hi all,
I had solaris installed earlier hoping to create a new partition ,i was checking out smc..
Here i accidentally entered to create a new partition but no sooner than i did it,i had a power cut and after that my partition table got corrupted ,i guess...
Having no choice i first installed... (2 Replies)
Discussion started by: wrapster
2 Replies
5. UNIX for Dummies Questions & Answers
Folks;
I have a Solaris 9 server that after power outage it won't come fully up and i was able to bring it up in single user mode and checked "/var/log/messages" & "/var/adm/messages" with nothing showing since Sept. 17.
i ran fsck and no luck.
I ran all tests from the OK prompt with no luck... (2 Replies)
Discussion started by: Katkota
2 Replies
6. Solaris
What type of communication does Solaris 10/09 need to do with it's default gateway before it can boot up? (7 Replies)
Discussion started by: bstauffer
7 Replies
7. Solaris
hi am trying to get some knowledge on Solaris common trouble shooting problems..
can some one help me in getting most common issues..
and how to solve those issues.
thanks in advance (4 Replies)
Discussion started by: aravindreddy
4 Replies
8. Solaris
Hi,
I am new to sloaris and just instlled the solaris 11.2, i know little more about linux, i open the /boot/grub/grub.cfg in solaris and there is many other entries forl solaris 11.2 one of them is for 'Oracle Solaris 11.2 text console' but at boot grub2 only show the first default entry that... (1 Reply)
Discussion started by: shamsat
1 Replies
LEARN ABOUT CENTOS
unsetenv
SETENV(3) Linux Programmer's Manual SETENV(3)
NAME
setenv - change or add an environment variable
SYNOPSIS
#include <stdlib.h>
int setenv(const char *name, const char *value, int overwrite);
int unsetenv(const char *name);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
setenv(), unsetenv():
_BSD_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
DESCRIPTION
The setenv() function adds the variable name to the environment with the value value, if name does not already exist. If name does exist
in the environment, then its value is changed to value if overwrite is nonzero; if overwrite is zero, then the value of name is not
changed. This function makes copies of the strings pointed to by name and value (by contrast with putenv(3)).
The unsetenv() function deletes the variable name from the environment. If name does not exist in the environment, then the function suc-
ceeds, and the environment is unchanged.
RETURN VALUE
The setenv() function returns zero on success, or -1 on error, with errno set to indicate the cause of the error.
The unsetenv() function returns zero on success, or -1 on error, with errno set to indicate the cause of the error.
ERRORS
EINVAL name is NULL, points to a string of length 0, or contains an '=' character.
ENOMEM Insufficient memory to add a new variable to the environment.
CONFORMING TO
4.3BSD, POSIX.1-2001.
NOTES
POSIX.1-2001 does not require setenv() or unsetenv() to be reentrant.
Prior to glibc 2.2.2, unsetenv() was prototyped as returning void; more recent glibc versions follow the POSIX.1-2001-compliant prototype
shown in the SYNOPSIS.
BUGS
POSIX.1-2001 specifies that if name contains an '=' character, then setenv() should fail with the error EINVAL; however, versions of glibc
before 2.3.4 allowed an '=' sign in name.
SEE ALSO
clearenv(3), getenv(3), putenv(3), environ(7)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2009-09-20 SETENV(3)