I would like my csh prompt to behave like the linux csh prompt setting done by linux command (set prompt="%n@%m %c]$ ")
how do I do that?
What I'm trying to do is that I would like to see what directory I'm in by looking at the prompt.
I've figured out that %n is like $user, and %m is like... (3 Replies)
I have a question regarding shell settings. I have one Sun server with Solaris 9 and Oracle 10g R2 on it. DB is up running well. I created a script to start DB automatically when server reboot. It didn't work. I manually run dbstart under $ORACLE_HOME/bin, the server return message like:" dbstart:... (7 Replies)
I have a csh that is called from autosys. It fails when it hits this code
env | grep Rep
if ( $status == 0 ) then
echo ""
else
setenv REP ""
endif
However if I run it from the command line, as opposed to from autosys (job schduler) it runs fine. I thought it might be some kind of... (2 Replies)
please send me format for wriiting classpath in shell script
this is my shell script
---------------
#! /bin/bash
javac File1.java
/usr/bin/java File1
--------------------------
the script works fine on termianal but in cron it gives me error saying class defination not found
... (1 Reply)
Hi,
I'm using the ksh shell and I'd like to set my PS1 prompt on an AIX system to include, amongst ther things, the current time.
This was my best effort: export PS1=$(date -u +%R)'${ME}:${PWD}# '
but this only sets the time to the value when PS1 is defined and the time value doesn't... (4 Replies)
Hi there,
How can I change bash to csh when starting a terminal, and set some aliases for csh? I can't find such files like .cshrc in my home directory.
Thanks a lot (1 Reply)
Hi folks
This is our prompt at the moment
oracle@pinkipinki:/opt/oracle> grep 'set prompt' .cshrc
set prompt = "$user@`uname -n`:$cwd> "
We wish to have in production the same prompt, but red.
Howto do that? I tried a lot a internet manuals, but it doesn't work. (1 Reply)
Need assistance in changing prompt .
Trying to change prompt in csh,tcsh shell . Below are the commands i tried in .cshrc and sourcing this files.
set prompt = "$user@`uname -n` : ${cwd}> "
#above commands works for username and hostname but cwd doesnt change
directories
set... (16 Replies)
I have given as:
PS1="Karthick>" in linux.
Now the prompt changed as:
Karthick>
Now I need to get back the default prompt .
How to achieve this?
Thanks in advance (13 Replies)
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Discussion started by: SA_Palani
2 Replies
LEARN ABOUT SUNOS
which
which(1) User Commands which(1)NAME
which - locate a command; display its pathname or alias
SYNOPSIS
which [filename...]
DESCRIPTION
which takes a list of names and looks for the files which would be executed had these names been given as commands. Each argument is
expanded if it is aliased, and searched for along the user's path. Both aliases and path are taken from the user's .cshrc file.
FILES
~/.cshrc source of aliases and path values
/usr/bin/which
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), attributes(5)DIAGNOSTICS
A diagnostic is given for names which are aliased to more than a single word, or if an executable file with the argument name was not found
in the path.
NOTES
which is not a shell built-in command; it is the UNIX command, /usr/bin/which
BUGS
Only aliases and paths from ~/.cshrc are used; importing from the current environment is not attempted. Must be executed by csh(1), since
only csh knows about aliases.
To compensate for ~/.cshrc files in which aliases depend upon the prompt variable being set, which sets this variable to NULL. If the
~/.cshrc produces output or prompts for input when prompt is set, which may produce some strange results.
SunOS 5.10 26 Sep 1992 which(1)