Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Set prompt, problems and tricks Post 302137756 by reborg on Wednesday 26th of September 2007 05:37:24 PM
Old 09-26-2007
And in csh what will happen if this is used for a prompt is that the pormpt will have a fixed value and not be updated when the directory is changed.

See my post in the FAQ for what needs to be done to get the prompt to update dynamically, on the other hand in tcsh %~ would be an option to explore.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

kill, set prompt

ok, there is a way to nicely kill a suspended job and to terminate another without using the mass -KILL command. also, how can I set my prompt temporarly without using the .bash_profile that uses the PS1. Thanks:) (1 Reply)
Discussion started by: bitwize
1 Replies

2. UNIX for Dummies Questions & Answers

set prompt in sh

hi, this < setprompt 'set prompt="# "' > is set in C shell. what is the equivalent in sh? thanks (14 Replies)
Discussion started by: yls177
14 Replies

3. Shell Programming and Scripting

set timeout for ssh prompt

Hi all, I want to set a timeout say 10 sec to shh prompt i.e. if no password is enetered for 10 sec prompt should again come to shell. How can this be achieved ?? I am using Linux RHEL 5 and Solaris 10. Pls help. Thanks in adv. VIKAS (3 Replies)
Discussion started by: vikas027
3 Replies

4. Shell Programming and Scripting

CWD in prompt only showing the directory when set

Hi Gurus, I am working in tcsh and i set the prompt with this. set prompt = "$cwd>" But I see teh prompt only gets reflected with the directory where I set the prompt. After i cd to another directory it still shows the old directory. Please advise (1 Reply)
Discussion started by: kinny
1 Replies

5. Shell Programming and Scripting

tcsh/csh: set prompt in production to color red

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)
Discussion started by: slashdotweenie
1 Replies

6. Shell Programming and Scripting

Problems with expect and set variables

I'm writing a script that'll send a time-stamp to my backup server. I create a file with the name of the current date, send it to my server with scp and rm the file from the local computer. Individually these commands work fine and with a set name the expect scripts also work fine. The problem... (0 Replies)
Discussion started by: Ktesh564
0 Replies

7. UNIX for Dummies Questions & Answers

set prompt = pwd

Assume that you want to set your prompt to display the current working directory followed by a percent symbol and then a space. The command pwd can be used to display this information, so explain why the following command does not have the expected result: set prompt=" `pwd`'%' " Its a... (7 Replies)
Discussion started by: Blockshelf
7 Replies

8. HP-UX

Unable to Set Prompt to current working DIR

HPUX does not recognise \h,\w,\u to display the hostname,working directory and username respectively. So how do i set the PS1 variable to display my current working Directory as my prompt? I also tried PS1=$PWD, But it keeps showing the same directory path as prompt which PWD was holding at... (3 Replies)
Discussion started by: Amit Kulkarni
3 Replies

9. UNIX for Dummies Questions & Answers

Any tricks on excluding a set of strings from a file?

Hi, Test file below: $: cat file1 DATE TIME COL1 COL2 COL3 COL4 ID 01/10/2013 0800 100 200 300 401 112 01/31/2013 1000 201 123 345 456 107 03/05/2013 1100 150 789 311 789 109 02/15/2013 1500 199 456 234 ... (3 Replies)
Discussion started by: newbie_01
3 Replies

10. UNIX for Beginners Questions & Answers

Problems with set up Cron

Hi I want to set up a cron for every 15 minutes between some hours. Can you tell whether the below command will work. Getting confuse because my time goes from night to next day morning. i want to setup 8 PM to next day 10 AM. */15 20-10 * * * sh abc.sh (1 Reply)
Discussion started by: raju2016
1 Replies
cdc(1)							      General Commands Manual							    cdc(1)

NAME
cdc - change the delta commentary of an SCCS delta SYNOPSIS
SID [mrlist]] [comment]] files DESCRIPTION
The command changes the for the SID specified by the option, of each named SCCS file. is defined to be the Modification Request (MR) and comment information normally specified via the delta(1) command and options). If a directory is named, behaves as if each file in the directory were specified as a named file, except that non-SCCS files (last compo- nent of the path name does not begin with and unreadable files are silently ignored. If a name of is given, the standard input is read (see each line of the standard input is taken to be the name of an SCCS file to be processed. Options Arguments to which can appear in any order, consist of option arguments and file names. All of the described option arguments apply independently to each named file: Used to specify the SCCS IDentification (SID) string of a delta for which the delta commentary is to be changed. If the SCCS file has the option set (see admin(1)), a list of MR numbers to be added and/or deleted in the delta commentary of the SID specified by the option may be supplied. A null MR list has no effect. MR entries are added to the list of MRs in the same manner as that of delta(1). To delete an MR, precede the MR num- ber with the character (see If the MR to be deleted is currently in the list of MRs, it is removed and changed into a "comment" line. A list of all deleted MRs is placed in the comment section of the delta commentary and preceded by a comment line stating that they were deleted. If is not used and the standard input is a terminal, the prompt is issued on the standard output before the standard input is read; if the standard input is not a terminal, no prompt is issued. The prompt always precedes the prompt (see option). MRs in a list are separated by blanks and/or tab characters. An unescaped new-line character terminates the MRs list. Note that if the option has a value (see admin(1)), it is treated as the name of a program (or shell procedure) that validates the correctness of the MR numbers. If a non-zero exit status is returned from the MR number validation program, terminates and the delta commentary remains unchanged. Arbitrary text used to replace the comment or comments already existing for the delta specified by the option. Previous comments are kept and preceded by a comment line stating that they were changed. A null comment has no effect. If is not specified and the standard input is a terminal, the prompt is issued on the standard output before standard input is read; if standard input is not a terminal, no prompt is issued. An unescaped new-line character terminates the comment text. The exact permissions necessary to modify the SCCS file are documented in get(1). Simply stated, they are either: o If you made the delta, you can change its delta commentary, or o If you own the file and directory, you can modify the delta commentary. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. International Code Set Support Single- and multi-byte character code sets are supported. DIAGNOSTICS
Use sccshelp(1) for explanations. EXAMPLES
Add and to the MR list, remove from the MR list, and add the comment to delta 1.6 of The following does the same thing: WARNINGS
If SCCS file names are supplied to the command via the standard input on the command line), the and options must also be used. FILES
x-file See delta(1). z-file See delta(1). SEE ALSO
admin(1), delta(1), get(1), sccshelp(1), prs(1), sccsfile(4), rcsfile(4), acl(5), rcsintro(5). cdc(1)
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy