Problems amending files using vi


 
Thread Tools Search this Thread
Operating Systems Solaris Problems amending files using vi
# 1  
Old 11-05-2006
Problems amending files using vi

Hi boys and girls,

I'm having a little problem and I hope someone could help me out.

The problem arises whenever I try to modify any file on my solaris system using vi. I'm using Solaris 10 and Mac OSX operating Systems. I'm connected to Solaris through SSH.

Now, when I try to modify any file, I tend to get this message (shown below). How can I get around this?

vi shutdown
xterm-color: Unknown terminal type
I don't know what kind of terminal you are on - all I have is 'xterm-color'.
[Using open mode]
"shutdown" [Read only] 218 lines, 4094 characters
#!/sbin/sh

The result is the same if I run the command from both the superuser console or just an ordinary cosole.

Thanks in advance.
# 2  
Old 11-05-2006
try setting your TERM environment variable to either 'xterm' or 'vt100' after ssg-ing into the remote, e.g.:
Code:
export TERM='xterm'

# 3  
Old 11-05-2006
Quote:
Originally Posted by vgersh99
try setting your TERM environment variable to either 'xterm' or 'vt100' after ssg-ing into the remote, e.g.:
Code:
export TERM='xterm'

Thanks for your reply, Im totally new to Unix and I wouldn't have a clue how to do it. It is possible to give a step by step guide if its not too much to ask of you.

Thanks
# 4  
Old 11-05-2006
THANKS alot I've figured out how to do it.

Cheers
# 5  
Old 11-05-2006
better use "vt100" or "dtterm" as TERM variable.... if you use always the standards during installation "dtterm" is used... but vt100 works almost on every solaris box Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Bash with problems related to files

Hi unix people, i'm really a newbie and i've created a small bash to process some picture with ImageMagick. I have just some issue and i think this script, if we can help me to correct in right way, could be useful! Basically i have a Eyefi Card who puts files into a folder called "picture"... (1 Reply)
Discussion started by: riccardo
1 Replies

2. Shell Programming and Scripting

Taking error message from XML file, amending to script

Hello all, I have a question about creating a script that will look for messages on one of our MQ series systems, and fix them. Currently, if we issue a command for example Command.sh errors it gives us: ID:c3e2d840d4f3f3d74040404040404040cb2ef4e62f70f702 <?xml version="1.0"... (3 Replies)
Discussion started by: jeffs42885
3 Replies

3. Shell Programming and Scripting

Execution problems for listing files between two dates

Hi, I have a requirement as mentioned below. I have a file Start.log which is present in a directory called logs. the file is pipe delimitted as shown below e.g. file content 01 | jsSeq | 2013-01-31 00:02:00 | 500 The third field is date column (YYYY-MM-DD HH24:MI:SS) and... (1 Reply)
Discussion started by: akshu.agni
1 Replies

4. Windows & DOS: Issues & Discussions

Problems with batch files for Cygwin/rxvt

I'm trying to write batch scripts of the kind that start a Cygwin session in rxvt from the desktop, with the added feature that the session starts in a folder other than $HOME. I want to do this for two folders I use often. According to the manpage, rxvt has a "-cd" command. Therefore, at first... (4 Replies)
Discussion started by: SilversleevesX
4 Replies

5. Shell Programming and Scripting

Problems comparing files

Hello guys, I have another problem, let me try to explain, i have two files: cat file1 2623559 2623562 2623565 2623568 2619503 cat file2 "53382743","6600000000000256053",30,2 "53382744","6600000000000256054",30,2 "53382745","6600000000000256055",30,2... (3 Replies)
Discussion started by: lestat_ecuador
3 Replies

6. UNIX for Dummies Questions & Answers

counting words then amending to a file

i want to count the number of words in a file and then redirect this to a file echo 'total number of words=' wc -users>file THis isnt working, anyone any ideas. (1 Reply)
Discussion started by: iago
1 Replies

7. Shell Programming and Scripting

amending crontab entry

Ok , im not sure if this can be done but I am writing a script that will install a package . I need it to remove the crontab entry for the old version and replace it with the crontab entry for the new version (which is slightly different) the old entry is 0 22 * * 0 /opt/SUNWexplo/explorer -mail... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

8. HP-UX

FTP user files permissions problems!!!

Hi, I have a problem with my ftp accounts whereby if any external ftp party connects to our server and puts any file in a directory on our server. The file permissons are always -rw-r----- and no read for others. I have adjusted the ftp user .profile to include 'umask 022' but this only works... (3 Replies)
Discussion started by: budrito
3 Replies
Login or Register to Ask a Question