06-21-2008
alias not working in scripts
Hi All,
PF below details,
> cat run.sh
#!/usr/bin/ksh
alias ll="ls -l"
> ./run.sh
> ll
ksh: ll: not found.
Pls help on this?
Thanks in Advance,
Naga
![Cool Smilie](https://www.unix.com/images/smilies/cool.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i create some alias in .cshrc file then i run source .cshrc to refresh it, the alias command work fine but when i relogin again, the alias command is not working... i need to re-run the source .cshrc command so that the alias only workable.
any idea on it? (7 Replies)
Discussion started by: lsy
7 Replies
2. Solaris
Hello, I am trying to set an alias in my .kshrc or .profile and when I do it is not setting. If I do it manually it works fine. Is there another file I should put this in? Here is the alias I am using.
alias ll='ls -ltr'
I am using solaris 9. When I type alias it does not show these... (5 Replies)
Discussion started by: dkranes
5 Replies
3. Shell Programming and Scripting
hi all, i have scripts executable in manully, but not working in cron. any ideas? thanks a lot?
* * * * * /home/dir/dir/file.sh
#! /bin/sh
alarmPath="/home/dir/monitoringAlarm"
alarmDateTime="$(date +%Y%m%d) $(date +%H%M%S)"
tomcatPID=`pidof /usr/local/jdk1.6.0_13/bin/java`
echo "tomcat... (3 Replies)
Discussion started by: maxlee24
3 Replies
4. Solaris
OS = Solaris 8
Issue: alias not working for root, but working for regular users
# grep root /etc/passwd
root:x:0:1:Super-User:/:/sbin/sh
# alias dir=ls
# dir
dir: not found
# alias dir="ls -l"
# dir
dir: not found
# alias dir='ls -l'
# dir
dir: not found
# alias... (2 Replies)
Discussion started by: aixlover
2 Replies
5. UNIX for Dummies Questions & Answers
Hi Friends,
I have added some aliases in .bash_profile file under the root folder. Its works fine and very useful, but does not go well with cp command.
alias deploy="cd /usr/local/tomcat/webapp"
alias artifacts="cd /usr/local/artifacts"
but when i try to cp from artifacts folder... (2 Replies)
Discussion started by: prashdeep
2 Replies
6. Red Hat
Iam facing some strange issue with alias. I have an alias file in which i have created lot of aliases as given below.
export BUILD_HOME=/apps/psr/build
export DB_HOME=/apps/psr/database
export LOGS_HOME=/apps/psr/logs
export BUILD_TEST=/apps/psr/build_dev/build_test
export... (0 Replies)
Discussion started by: Vikram_Tanwar12
0 Replies
7. Solaris
Hi,
I'm on Solaris (SunOS wsp2cm01 5.10 Generic_150400-10 sun4v sparc SUNW,Sun-Fire-T200). Trying to set up an alias like below -
alias grep="/usr/xpg4/bin/grep"but when I call grep in my command it ignores my alias & uses /usr/bin/grep instead. The problem with /usr/bin/grep is that it doesn't... (24 Replies)
Discussion started by: nexional
24 Replies
8. Solaris
Hi,
Please assist me why HC alias is not working under this shell?
root@singapore # grep HC /.profile
alias HC='cd /var/tmp/HC/2015/`date +%B`'
root@singapore # . /.profile
Sourcing //.profile-EIS.....
root@singapore # echo $HC
root@singapore # HC
HC: not found
root@singapore # echo... (18 Replies)
Discussion started by: tprabhu1983
18 Replies
9. Shell Programming and Scripting
I have several shell scripts which contain the nawk command.
Here is what i m doing assign the correct value to nawk as nawk is not found on a new systems.
Here is what i did.
more test.sh
] && alias nawk=/usr/bin/gawk
] && alias nawk=/usr/bin/nawk
] && alias nawk=/usr/bin/awk... (7 Replies)
Discussion started by: mohtashims
7 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have the following aliases:
$: alias | grep "^du="
du='du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2 }'\'' | sort -rn'
$: alias | grep "^dutop10="
dutop10='du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2 }'\'' | sort -rn | head... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT REDHAT
gimpprint-color
GIMPPRINT-COLOR(7) Gimp-Print Manual Pages GIMPPRINT-COLOR(7)
NAME
gimpprint-color - Gimp-Print color balancing
DESCRIPTION
Gimp-Print includes several color balancing controls. These may be used to adjust the original image's brightness and contrast and gamma,
and the density and saturation of the output, as well as the individual cyan, magenta and yellow levels.
COLOR BALANCING
Cyan
Magenta
Yellow The range of values is 0.0 - 4.0, and defaults to 1.0. These three options allow specification of the cyan, magenta, and yellow
levels independently, for rebalancing the levels. Normally, these should be adjusted to yield neutral gray, but they can be used
for other effects.
Brightness
The range of values is 0.0 - 2.0, and defaults to 1.0. This adjusts the brightness of the image. 0.0 gives a fully black image;
2.0 gives a fully white image. Values greater than 1 will result in black not being solid and highlights turning white; values less
than 1 will result in white not being perfectly clear and shadows turning black.
Contrast
The range of values is 0.0 - 4.0, and defaults to 1.0. Adjust the contrast of the image. 0.0 gives a solid gray for the entire
image, the exact gray depending upon the brightness chosen.
Gamma The range of values is 0.1 - 4.0, and defaults to 1.0. Adjust the gamma of the image, over and above the printer-specific correc-
tion. Gamma less than 1.0 will result in a darker image; gamma greater than 1.0 will result in a lighter image. Unlike brightness,
gamma adjustment does not change the endpoints; it merely changes the shape of the input->output curve.
Density
The range of values is 0.1 - 2.0, and defaults to 1.0. Adjust the amount of ink deposited on the paper. If you've chosen the cor-
rect paper type and you're getting ink bleeding through the paper or puddling, try reducing the density to the lowest value you can
while still achieving solid black. If you're not getting solid black, even with the contrast and brightness at 1.0, try increasing
the density.
All of the printers supported here actually need less than 100% ink density in most cases, so the actual density is something other
than the nominal density setting. The effective density setting cannot go above 100%, so if a value specified will result in an
excessively high density level, it will be silently limited to 1.0.
Saturation
The range of values is 0.0 - 9.0, and defaults to 1.0. Adjust the brilliance of colors. 0.0 results in pure grayscale; using this
with Color=1 is one way of getting grayscale (see below under "Color" for a full discussion). Saturation of less than 1.0 results
in more muted colors; saturation of greater than 1.0 results in more vibrant colors. Very high saturation often results in very
strange effects, including posterization and banding that might not be expected. For normal purposes, the saturation should gener-
ally be less than 1.5.
COPYRIGHT
Copyright (C) 2001 Michael Sweet (mike@easysw.com) and Robert Krawitz (rlk@alum.mit.edu)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This manual page was written by Roger Leigh (roger@whinlatter.uklinux.net)
SEE ALSO
gimpprint-dithers(7), gimpprint-imagetypes(7), gimpprint-inktypes(7), gimpprint-mediasizes(7), gimpprint-mediasources(7), gimpprint-medi-
atypes(7), gimpprint-models(7), gimpprint-resolutions(7).
Version 4.2.4 25 Nov 2002 GIMPPRINT-COLOR(7)