12-06-2011
When do they give you that error?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am new to UNIX and am interested to practice on a Shell account with some basic Unix installed, does anyone know of a free or cheap shell account? (4 Replies)
Discussion started by: shneurg
4 Replies
2. HP-UX
Hello Everyone,
I am a newbie in unix. I was practicing shell scripts on hp unix machine.
I changed my current login shell (Korn) to Bourne shell giving the following command.
$ chsh username /usr/bash
I am using secure shell client for accessing the hp ux server.
After which i... (4 Replies)
Discussion started by: hardesh
4 Replies
3. UNIX for Dummies Questions & Answers
Hi
Can any one help me with unix box user name and password. I tried several free sites which provide free unix login, but there I can't use ksh.
Thanks:) (5 Replies)
Discussion started by: itsjoy2u
5 Replies
4. Linux
Hi
I tried with bash --login option. but the output is
siva:~$ bash --login
siva:~$
is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su )
Thx in advance
Siva (3 Replies)
Discussion started by: Sivaswami
3 Replies
5. Shell Programming and Scripting
Hello fellow *nix users!
I am a bit confused how could I get an environment of a "fresh/clean" login shell, that is, the environment at that moment when user has started e.g. a new terminal/console or so.
So this is the sequence of actions I should be able to do in a single shell session:
... (6 Replies)
Discussion started by: Miikka
6 Replies
6. Shell Programming and Scripting
Hi All,
I am trying the following to set the environment variable in my scirpt.But it is not setting with the correct value.
Can you guys please help me out to get the correct value.
1. I have environment variable NLS_LANG=American_America.UTF8
2. In my script (ksh) i am trying the following... (1 Reply)
Discussion started by: girish.raos
1 Replies
7. Shell Programming and Scripting
Hello all,
for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell.
So serverA launches the ssh command to serverB which has a local user with my script as a login shell.
Local script works like a charm on his own.
serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies
8. UNIX for Advanced & Expert Users
Hey folks,
When a user is added to a new group, the user has to be log out and log in again to make the new group effective. Is there any system command or technique to refresh user group ID update without re-login?
I am not talking about to use "login" or "su -l" commands which can only make... (2 Replies)
Discussion started by: hce
2 Replies
9. UNIX for Beginners Questions & Answers
Hello,
What will be the effect of environment variable, when mulitple sessions are opened by same login?
Following code snippet is part of a shell script.
Environment : HP-UX B.11.31 U ia64
For Example
EXECUTION_DIR=`pwd`/
EXECUTION_DIR_RT=${EXECUTION_DIR}RT/
export... (4 Replies)
Discussion started by: Siva SQL
4 Replies
10. UNIX for Beginners Questions & Answers
Hello and thanks in advance for any help anyone can offer to straighten me out on this subject
I'm trying to understand non-interactive & non-login shells and having a hard time conceptualize the process a non-interactive & non-login shell goes through to start up. Particularly for background... (7 Replies)
Discussion started by: bodisha
7 Replies
LEARN ABOUT LINUX
posix_fallocate
POSIX_FALLOCATE(3) Linux Programmer's Manual POSIX_FALLOCATE(3)
NAME
posix_fallocate - allocate file space
SYNOPSIS
#include <fcntl.h>
int posix_fallocate(int fd, off_t offset, off_t len);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
posix_fallocate():
_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L
DESCRIPTION
The function posix_fallocate() ensures that disk space is allocated for the file referred to by the descriptor fd for the bytes in the
range starting at offset and continuing for len bytes. After a successful call to posix_fallocate(), subsequent writes to bytes in the
specified range are guaranteed not to fail because of lack of disk space.
If the size of the file is less than offset+len, then the file is increased to this size; otherwise the file size is left unchanged.
RETURN VALUE
posix_fallocate() returns zero on success, or an error number on failure. Note that errno is not set.
ERRORS
EBADF fd is not a valid file descriptor, or is not opened for writing.
EFBIG offset+len exceeds the maximum file size.
EINVAL offset was less than 0, or len was less than or equal to 0.
ENODEV fd does not refer to a regular file.
ENOSPC There is not enough space left on the device containing the file referred to by fd.
ESPIPE fd refers to a pipe of file descriptor.
VERSIONS
posix_fallocate() is available since glibc 2.1.94.
CONFORMING TO
POSIX.1-2001.
POSIX.1-2008 says that an implementation shall give the EINVAL error if len was 0, or offset was less than 0. POSIX.1-2001 says that an
implementation shall give the EINVAL error if len is less than 0, or offset was less than 0, and may give the error if len equals zero.
SEE ALSO
fallocate(2), lseek(2), posix_fadvise(2), feature_test_macros(7)
COLOPHON
This page is part of release 3.27 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
2010-09-20 POSIX_FALLOCATE(3)