Hi.
I have a C program that is using the **environ pointer and I am trying to set up aliases for a system("/bin/ksh") call. This works for other environment variables but not for the aliases. Does anyone know if this can be done? Thanks ahead of time. (1 Reply)
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Can any one show me how to create an alias account that silently copies local emails to the administrator (root) using a linux cmd line or GUI?
The answer needs to be very simplly explained at this stage, as I am new to the command prompt...expecialy in linux.
thanks heaps guys
Pipa:)
I... (2 Replies)
I have directory/dns server running sparc solaris 9.
while troubleshooting another issue, i overwrote the aliases file on accident.
my question is: is there any way to revert this?
any help super appreciated...especially since this a production box! (2 Replies)
Hello:
i have several server with own etc aliases. right now i want to combine it all into a general etc aliases in a new freebsd server. cause it consist hundred thousand of record user inside how to make a shell script to combine it or configure it.
all etc aliases record example: ... (0 Replies)
I have four files a,b,c,d which need to contain certain in the sequence a, b, c ,d , each file command which needs to be executed,
what i m in need is that to executed file and cmd in the defined order and if any of the command FAIL or throw ERROR, it script shud come out... (3 Replies)
hi, I am trying to create a script in AIX (5.3 I think), then run it. here's what I have:
/home/me $ vi first.aliases
...
alias cdblah='cd /blah'
alias cdho='cd /ho'
alias ssr='sudo su - random'
~
...end of first.aliases
/home/me $ ./first.aliases
/home/me $ ssr
ksh: ssr: not found.... (2 Replies)
Hi all,
I have and alias set in .profile like
alias ll='ls -la'
I am writing a shell script in which i am using "ll" but it gives command not found . Can anyone please tell me how source aliases in the script we write do i need to define it again in every script i write is there any oher... (1 Reply)
Within a session we have created some aliases. How to unset all the aliases in the session or specific alias? (1 Reply)
Discussion started by: pandeesh
1 Replies
LEARN ABOUT LINUX
dot
DOT(P) POSIX Programmer's Manual DOT(P)
NAME
dot - execute commands in the current environment
SYNOPSIS
. file
DESCRIPTION
The shell shall execute commands from the file in the current environment.
If file does not contain a slash, the shell shall use the search path specified by PATH to find the directory containing file. Unlike nor-
mal command search, however, the file searched for by the dot utility need not be executable. If no readable file is found, a non-interac-
tive shell shall abort; an interactive shell shall write a diagnostic message to standard error, but this condition shall not be considered
a syntax error.
OPTIONS
None.
OPERANDS
See the DESCRIPTION.
STDIN
Not used.
INPUT FILES
See the DESCRIPTION.
ENVIRONMENT VARIABLES
See the DESCRIPTION.
ASYNCHRONOUS EVENTS
Default.
STDOUT
Not used.
STDERR
The standard error shall be used only for diagnostic messages.
OUTPUT FILES
None.
EXTENDED DESCRIPTION
None.
EXIT STATUS
Returns the value of the last command executed, or a zero exit status if no command is executed.
CONSEQUENCES OF ERRORS
Default.
The following sections are informative.
APPLICATION USAGE
None.
EXAMPLES
cat foobar
foo=hello bar=world. foobar
echo $foo $bar
hello world
RATIONALE
Some older implementations searched the current directory for the file, even if the value of PATH disallowed it. This behavior was omitted
from this volume of IEEE Std 1003.1-2001 due to concerns about introducing the susceptibility to trojan horses that the user might be try-
ing to avoid by leaving dot out of PATH .
The KornShell version of dot takes optional arguments that are set to the positional parameters. This is a valid extension that allows a
dot script to behave identically to a function.
FUTURE DIRECTIONS
None.
SEE ALSO
Special Built-In Utilities
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE /The Open Group 2003 DOT(P)