10-27-2019
Quote:
Originally Posted by
newbie_01
Hi,
I have the following aliases .....
Please post the details of your shell when posting questions like this.
What is your shell and version?
Please get in the habit of posting the details of your operating environment, shell, etc. That way, it is much easier to help
you.
PS: Thanks for posting your OS
... now please post the details of your shell AND OS.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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: (2 Replies)
Discussion started by: Nagapandi
2 Replies
2. 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
3. UNIX for Advanced & Expert Users
Hi,
I was trying to call "script <an ip add>" command from .profile file to log everything whenever anyone logs in to this user. I did the following at the end of .profile. 1) Extracted the IP address who logged in 2) Called script < ip add> . The problem I am facing is all, aliases etc. written... (3 Replies)
Discussion started by: amicon007
3 Replies
4. 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
5. 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
6. 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
7. 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
8. 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
9. 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
10. 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
LEARN ABOUT HPUX
xtpopupspringloaded
XtPopupSpringLoaded() XtPopupSpringLoaded()
Name
XtPopupSpringLoaded - map a spring-loaded popup from within an application.
Synopsis
void XtPopupSpringLoaded(popup_shell)
Widget popup_shell;
Inputs
popup_shell
Specifies the shell widget to be popped up.
Availability
Release 4 and later.
Description
XtPopupSpringLoaded() calls the functions registered on the specified shell's
XtNpopupCallback callback list and pops the shell up, making it a spring-loaded shell. A spring-loaded shell is one that is popped up in
response to a button press and will pop down when the button is released. Spring-loaded shells have events dispatched to them specially to
ensure that they receive the button up event, even if it occurs in another window. See XtAddGrab() for more details.
XtPopupSpringLoaded() performs exactly like XtPopup(), except that XtPopupSpringLoaded() does the following:
o Sets the shell spring_loaded field to True.
o Always calls XtAddGrab() with exclusive set to True and spring_loaded set to True.
See XtPopup() for details.
Usage
You can also pop up spring loaded shells by using the XtMenuPopup action in a translation table. This predefined action calls XtPopup-
SpringLoaded().
Any pop up shell can be popped down with XtPopdown(), the XtCallbackPopdown() callback function, or with the XtMenuPopdown action.
XtPopupSpringLoaded() was added in Release 4, and prior to this release, the only way to pop up a spring loaded shell was to use the
MenuPopup action (which has now been renamed XtMenuPopup).
See Also
XtAddGrab(1), XtCreatePopupShell(1), XtMenuPopdown(1), XtMenuPopup(1), XtPopdown(1), XtPopup(1).
Xt - Pop Ups XtPopupSpringLoaded()