Visit The New, Modern Unix Linux Community


vi editor not displaying?


 
Thread Tools Search this Thread
Operating Systems SCO vi editor not displaying?
# 1  
vi editor not displaying?

Hi guys,


I have changed some path in the vi .profile and then i shutdown the system and when i reboot it i was unable to use
vi.

It is showing vi not found.Likewise for few other commands also.


How to solve this problem and make vi work again.


Plz. do provide the answer it is Urgent??


thanx,
m.ananthu
# 2  
your .profile is read everytime a login shell is started.

what did you take out of .profile?

do this, post here the output of the command:
'echo $PATH'

then lets try to see whats missing. it should have /usr/local/bin:/usr/bin at the very least. then if you are using x or kde or gnome you will have entries in your path pointing at those executables.
# 3  
vi is nornally located in /bin directory and is likely that use have remove /bin in your .profile path

to fix the problem issue

/bin/vi .profile

and put /bin in your PATH like

PATH=/bin:
export PATH

then . ./.profile or logout and log back in so new .profile is loaded

the above will work if vi is install in the /bin directory, if your vi is not installed in /bin directory do

find / -name vi 2>/dev/null
to find where your vi is installed then included the location in your .profile PATH
# 4  
Hi guys,


Thank u very much it is working now.

Plz. do provide an answer for my other question as well so that

i will be so thankful to u guys.



I want ur replies very very Urgently.Plz. don't ignore this mail.

I am using Sco openserver 5.0.2 and i have downloaded jdk1.2.2

for that i have installed it.The jdk is working fine.

Then i download jakarta-tomcat-4.1.24.zip and i have installed it.

In order to run tomcat i went to the directory:-

/var/jakarta/bin

Which is where i move the tomcat contents:-

and i use :-

vi catalina.sh


Which opens a environment variable setting file.

Here i set the following things:-


export JAVA_HOME=/usr/java2

export CATALINA_HOME=/var/jakarta

Where this is the correct path Where jdk1.2.2 and jakarta-tomcat resides.


And in the vi .profile:-

i have set for jdk


PATH=$PATH:.:/usr/java2/bin


But there is no problem with jdk but when i try to run

catalina.sh by using the following command:-


# /var/jakarta/bin/catalina.sh start

in the shell prompt.

I am getting an error saying :-

/usr/java2 is not an identifier the same problem occurs for

CATALINA_HOME as well .


So plz. do provide a solution for this and plz. explain me where i am going wrong??? It is Very very Urgent at the moment.Plz. don't ignore this mail. I am in that situation at the moment.

I will be waiting for ur replies.

Thanx,
m.ananthu

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #301
Difficulty: Easy
Slackware was originally derived from the Software Linux System (SLS).
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help with displaying only names using ls -l

Hi I am kind of stuck I need help with printing only the names of the folder in the format LAST NAME, F so last name and the first character of first name using ls -l command in the /home directory currently they are in the format firstname.lastname please advice (4 Replies)
Discussion started by: classic
4 Replies

2. UNIX for Dummies Questions & Answers

displaying stdout of a script using vi editor

Hi, Is there a way to display the stdout of a script using vi editor without writing the stdout to a file. I have a script (format.sh) which reads a file and displays it in a special format. i want to see this displayed text using vi editor? currently i am doing: format.sh myfile> out.txt... (1 Reply)
Discussion started by: yakari
1 Replies

3. UNIX for Dummies Questions & Answers

Displaying Filesystem During df

I'm unsure about the topic title, but this is what I want to do. I have a directory, named /opt/extra and and I want it to be displayed when I issue df command. Just by using df only, not df /opt/extra. OS: Solaris 10 Current df output root@jebat10 # df -k Filesystem kbytes ... (3 Replies)
Discussion started by: Olli.Lang
3 Replies

4. Solaris

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

5. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

6. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

7. Solaris

Characters not displaying

Hi, Does anyone know what i need to do to get the '' character to display on a Solaris 9 server. When i try to cut and paste it onto some of my machines via telnet it displays an 'i' but other machines with the same OS version are ok. It also doesn't like Japanese Characters. Any help would be... (0 Replies)
Discussion started by: mwfisher
0 Replies

8. UNIX for Dummies Questions & Answers

displaying with ls

hi, how can display year parameter also while listing files from a directory?it displyas only if last acces sis more than 1 yr i guess.can it be dispalyed using some option or some method? thanks and regards vivek.s (2 Replies)
Discussion started by: vivekshankar
2 Replies

9. UNIX for Dummies Questions & Answers

Displaying what a command is doing/has done

I would like to see what a command is doing. For example, say I move 10 files using mv * somedir. Can I use some other command to see a verification of each files movement. Like: file1 moved to somedir file2 moved to somedir ... but, i'd to have this capability for all commands. it seems... (1 Reply)
Discussion started by: quantumechanix
1 Replies

10. Shell Programming and Scripting

displaying date

Hi All, When I type date..I get the date, time ..etc displayed ...but can someone help me to display yesterdays date... some script to display back dates. Thanks in advance Minaz (7 Replies)
Discussion started by: minazk
7 Replies

Featured Tech Videos