Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Changing the UNIX command prompt Post 20192 by WERUreo on Monday 22nd of April 2002 11:45:27 PM
Old 04-23-2002
Thanks for the help with changing my prompt. If I wanted my prompt to stay like that every time I log in, what file would I put that line in? local.cshrc, local.profile, or local.login?

EDIT: Never mind, I was able to figure it out... Thanks again for all the help! Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing Unix Prompt

Me again, What is the difficulty to display the full directory Path before my prompt command ? (like DOS) I'm using Solaris 8 + Bash Thanks again Fabien (4 Replies)
Discussion started by: unclefab
4 Replies

2. UNIX for Dummies Questions & Answers

Changing the prompt

Phew simple question, I want to display the my directory path in prompt. Did the following in .profile PS1=`pwd` export PS! Worked, but it always points to HOME directory. When i do a cd, it doesn't change. What am i missing. Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

3. UNIX for Dummies Questions & Answers

Changing Prompt in sh

I know no one has ever asked this before {not :D } but I am trying to set the prompt in the .profile under sh. I have tried everything I have seen on the web in regards to this, with no success. The OS is SCO Unixware 7.1.1, {not by my choice}. All the examples I see seem to be for ksh, which is... (1 Reply)
Discussion started by: jcc5169
1 Replies

4. Shell Programming and Scripting

Changing text in the command prompt

Hi, I want to change my command prompt to contain the current username and the current directory in it, instead of just the '$' symbol. I tried the command:- export PS1="$(echo \\n$) " But whenever I switch the user or change the directory, the changes are not reflected in the command... (10 Replies)
Discussion started by: unipepper
10 Replies

5. UNIX for Dummies Questions & Answers

Unable to get the db2 command prompt in unix

Hi, When i try to connect to the db2 database from unix solaris 5.8 version by typing "db2" from the .../sqllib/bin/ folder, i am not getting the db2 command prompt. Could anyone help me resolve this? Here the db2 is executable only. But still iam not getting the db2 prompt. The error i get is... (4 Replies)
Discussion started by: ragavhere
4 Replies

6. Solaris

Changing prompt

I currently have this as my prompt when I log in (shell is sh): PS1="`hostname ` # " My question is how do I add the current directory to that prompt? Is there a way? Thanks. (5 Replies)
Discussion started by: kjbaumann
5 Replies

7. UNIX for Advanced & Expert Users

Entire Input command not visible in Unix prompt

Hi, While typing the Unix command, entire command is not visible.When the input command is long, it is not visible. I want the entire command to be displayed when i type it. Please help to resolve this issue. Thanks Sampath (7 Replies)
Discussion started by: sampath.giri
7 Replies

8. Shell Programming and Scripting

Use Unix shell script to open Windows command prompt (cmd)

Hello, I work on Windows and I use Putty to access a remote UNIX server. I am trying to build a shell script that will have as main task to open the Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
Discussion started by: rookie2785
14 Replies

9. UNIX Desktop Questions & Answers

Can Unix access Windows' File through Command Prompt in Unix

Hi all, I wish to know whether Unix can access window's file in Unix's terminal? Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies

10. UNIX for Dummies Questions & Answers

[Solved] Help needed to have changing value to the command prompt string variable PS1

Hi, I am using git bash terminal window to do git operations. I have set the prompt string variable PS1 in the ~/.bashrc file as follows: export PS1=" " This is intended to show me the current git branch's name which is active as part of the prompt string. But, the problem is when I do a git... (2 Replies)
Discussion started by: royalibrahim
2 Replies
ct(1)							      General Commands Manual							     ct(1)

NAME
ct - Dials an attached terminal and issues a login process SYNOPSIS
ct [-hv] [-sspeed] [-wnumber] [-xnumber] telephone_number The ct command enables a user on a remote terminal to communicate with the Tru64 UNIX operating system over a telephone line attached to a modem at each end of the connection. OPTIONS
Prevents ct from hanging up the current line to answer an incoming call. Sets the data rate where speed is expressed in baud. The default is 1200 baud. Allows ct to send a running narrative to standard error output. Specifies number as the maximum number of minutes that ct is to wait for a line. The command then dials the remote modem at 1-minute intervals until the connection is established or the specified time has elapsed. Used for debugging. Produces detailed information about the command's execution on standard error output on the local system. The debugging level, number, is a single digit between 0 and 9. The recommended default is 9. Specifies the telephone number of the modem attached to the remote terminal. telephone_number can include the digits 0 - 9, - (dashes) representing delays, = (equal signs) representing secondary dial tones, * (asterisks), and # (number signs). The phone number can contain a maximum of 31 characters. DESCRIPTION
Once ct establishes a connection, a user on the remote terminal can log in and work on the system. A user on the local system issues ct with the appropriate telephone number to call the modem attached to the remote terminal. When the con- nection is established, ct issues a login prompt that is displayed on the remote terminal. A user on the remote terminal enters a username at the prompt, and the operating system opens a new shell. The person using the remote terminal then proceeds to work on the system like a local user. However, if there are no free lines, the ct command displays a message to that effect and asks if the local user wants to wait for one. If the reply is no, the ct command hangs up. If the local user wants to wait for a free line, the ct command prompts for the number of min- utes to wait. The ct command continues to dial the remote system at 1-minute intervals until the connection is established or until the specified amount of time has elapsed. In order to establish a ct connection, the remote user contacts the local user with a regular telephone call and asks the local user to issue the ct command. However, if such connections occur regularly at your site, your system manager might prefer that a specified local system automatically issues the ct command to one or more specified terminals at certain designated times. The ct command is useful in the following situations: When a user working offsite needs to communicate with a local system under strictly supervised conditions. Because the local system contacts the remote terminal, the remote user does not need to know the telephone number of the local system. Additionally, the local user issuing the ct command can monitor the work of the remote user. When the cost of the connection should be charged either to the local site, or to a specific account on the calling system. If the remote user has the appro- priate access permission and can make outgoing calls on the attached modem, that user can make the equivalent of a collect call. The remote user calls the specified local system, logs in, and issues the phone number of the remote terminal without the -h option. The local system hangs up the initial link so that the remote terminal is free for an incoming call, and then calls back to the modem attached to the remote terminal. After the user logs out, ct prompts the user on the remote terminal with a reconnect option; the system can either display a new login prompt or drop the line. The ct command is not as flexible as the cu command. For example, you cannot issue system commands on the local system while connected to a remote system via ct. However, the ct command does have two features not available with cu: You can instruct ct to continue dialing the specified number until the connection is established or a set amount of time has elapsed. You can specify more than one telephone number at a time to instruct ct to continue dialing each modem until a connection is established over one of the lines. If you specify alternate dialing paths by entering more than one number on the command line, ct tries each line listed in the /usr/lib/uucp/Devices file until it finds an available line with appropriate attributes, or runs out of entries. If there are no free lines, ct asks if it should wait for one, and if so, for how many minutes. The ct command continues to try to open the dialers at 1-minute intervals until the specified time is exceeded. The local user can override this default by specifying a time with the -wnumber option when entering the command. NOTES
In order to establish a ct connection, the remote user generally contacts a local user (with a regular phone call) and asks the local user to issue the command. Before issuing the ct command, be certain that the remote terminal is attached to a modem that can answer the tele- phone. EXAMPLES
To connect to a modem with an internal number 4-1589 (the - is optional), enter: ct 41589 The system responds: Allocated dialer at 1200 baud Confirm hang_up? (y to hang_up) To dial a modem, with a local telephone number, attached to a remote terminal (dialing 9 for an outside line and specifying a 3-minute wait time), enter: ct -w3 9=5551212 To dial a modem, with a long-distance number, attached to a remote terminal (specifying an outside line and a five-minute wait), enter: ct -w5 9=15555551212 FILES
Information about available devices. Dialing code abbreviations. Initial handshaking on a link. Access permission codes. Accessible remote systems. SEE ALSO
Commands: cu(1), login(1), tip(1), uucico(8), uucleanup(8), uucp(1), uuencode(1), uulog(1), uuname(1), uupick(1), uusched(8), uusend(1), uustat(1), uuto(1), uux(1) ct(1)
All times are GMT -4. The time now is 04:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy