Sponsored Content
Top Forums Shell Programming and Scripting How to overcome Segmentation Fault in Unix ?? Post 97304 by matrixmadhan on Saturday 28th of January 2006 02:34:42 AM
Old 01-28-2006
Quote:
Originally Posted by charan81
Hi..

I want to add a line of data to a already existing file..

When i use

echo "1i\nGROUP_NAME,JOB_NAME,STATUS,PROCESS_GROUP,JOB_START,JOB_END \n.\nwq" | ex -s abc.txt

where abc.txt contains only
Hello
Testing
Insert

I am getting this..

dumb: Unknown terminal type
ksh: 19464 Segmentation Fault


Is that a major error..If so, How to overcome ??

this clearly shows that,
ex was unable to find the following file,

Code:
/usr/share/lib/terminfo/d/dumb

if the above file is not found,
then copy the following file to the above location
Code:
/usr/share/lib/terminfo/u/unknown

hope this helps.
 

10 More Discussions You Might Find Interesting

1. Programming

segmentation fault

hi all i'm trying to execute a c program under linux RH and it gives me segmentation fault, this program was running under unix at&t anybody kow what the problem could be? thanx in advance regards (2 Replies)
Discussion started by: omran
2 Replies

2. Programming

Hi! segmentation fault

I have written a program which takes a directory as command line arguments and displays all the dir and files in it. I don't know why I have a problem with the /etc directory.It displays all the directories and files untill it reaches a sub directory called peers which is in /etc/ppp/peers.the... (4 Replies)
Discussion started by: vijlak
4 Replies

3. Programming

segmentation fault

ive written my code in C for implementation of a simple lexical analyser using singly linked list hence am making use of dynamic allocation,but when run in linux it gives a segmentation fault is it cause of the malloc function that ive made use of????any suggestions as to what i could do??? thank... (8 Replies)
Discussion started by: rockgal
8 Replies

4. Programming

segmentation fault

If I do this. Assume struct life { char *nolife; } struct life **life; // malloc initialization & everything if(life->nolife == 0) Would I get error at life->nolife if it is equal to 0. wrong accession? (3 Replies)
Discussion started by: joey
3 Replies

5. Programming

segmentation fault.

This code is causing a segmentation fault and I can't figure out why. I'm new to UNIX and I need to learn how to avoid this segmentation fault thing. Thank you so much. Thanks also for the great answers to my last post.:):b: int main() { mysqlpp::Connection conn(false); if... (3 Replies)
Discussion started by: sepoto
3 Replies

6. Programming

Segmentation fault in C

i have this code int already_there(char *client_names, char *username) { int i; for(i = 0; i<NUM; i++) { printf("HERE\n"); if (strcmp(client_names, username)==0) return(1); } return(0); } and i get a segmentation fault, whats wrong here? (7 Replies)
Discussion started by: omega666
7 Replies

7. Shell Programming and Scripting

Segmentation fault in Unix shell (linux OS)

Hi, I am trying to run an online downloaded tool but I am having an eror segmentation fault. ./multicoil test.seq Config file /home/kmohanas/MULTICOIL/multicoil_config window length 0 = 28 window length 1 = 28 multi_lib = 3 4 5 multi_lib = 2 3 4 pair_lib = 1 2 4 printfile =... (6 Replies)
Discussion started by: kaav06
6 Replies

8. Programming

Using gdb, ignore beginning segmentation fault until reproduce environment segmentation fault

I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this : i wrote script for watchdog my app (polo) and check every second if it's not running then start it , the problem is , if my app , remain in state of segmentation fault for a while (ie 15 ... (6 Replies)
Discussion started by: pooyair
6 Replies

9. Solaris

Segmentation fault

Hi Guys, I just installed and booted a zone called testzone. When I logged in remotely and tried changing to root user I get this error: "Segmentation fault" Can someone please help me resolve this? Thanks alot (2 Replies)
Discussion started by: cjashu
2 Replies

10. Programming

C. To segmentation fault or not to segmentation fault, that is the question.

Oddities with gcc, 2.95.3 for the AMIGA and 4.2.1 for MY current OSX 10.14.1... I am creating a basic calculator for the AMIGA ADE *NIX emulator in C as it does not have one. Below are two very condensed snippets of which I have added the results inside the each code section. IMPORTANT!... (11 Replies)
Discussion started by: wisecracker
11 Replies
tic(1)							      General Commands Manual							    tic(1)

NAME
tic - Translates terminfo files from source to compiled format SYNOPSIS
tic [-v[number]] [-c] [file...] The tic command translates terminfo files from the source format into the compiled format. OPTIONS
Checks the file for errors only. Errors in the use= field are not detected. Writes trace information on the progress of the tic command. The number parameter is an integer, from 0 to 8, that increases the level of verbosity. If number is omitted, the default is 1. DESCRIPTION
If a file is not specified, the tic command reads standard input. The tic command places the results in the /usr/share/lib/terminfo directory. If the TERMINFO environment variable is set, the results are placed there instead of in /usr/share/lib/terminfo. The tic command compiles all terminfo descriptions in the file or files specified by the file variable. When the tic command finds a use= field, it searches first the current file, then reads in the binary from /usr/share/lib/terminfo to complete the entry. If the environment variable TERMINFO is set, that directory is searched instead of /usr/share/lib/terminfo. The size of a compiled entry cannot exceed 4096 bytes and the name field cannot exceed 128 bytes. Terminal names exceeding 14 characters are truncated to 14 characters and a warning message is printed. ENVIRONMENT VARIABLES
The following environment variables affect the behavior of tic: Causes the command to behave as a System V command if the value of this environment variable is set to SVR4 or svr4. The options designated by [SVR4] are honored while identical non-System V options are ignored. Command output and error messages also follow System V conventions. FILES
Terminal information database. SEE ALSO
Commands: captoinfo(1), infocmp(1) Functions: curses(3) Files: terminfo(4) tic(1)
All times are GMT -4. The time now is 08:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy