Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Bash/vi: Make file go away once I close it. Post 302862327 by verdepollo on Thursday 10th of October 2013 02:43:12 PM
Old 10-10-2013
What terminal are you using? Post the output of echo $TERM

Some *nix terminals support t_ti and t_te variables (these control the behavior you describe).

Some others like vt100 or sco do not support it, as far as I know.

You may have success by just changing the terminal to something more "full-featured" like xterm:
Code:
export TERM="xterm"

However, there's no guarantee that xterm is available on your system.

Last edited by verdepollo; 10-10-2013 at 04:32 PM.. Reason: command typo... No wonder why the command didn't work.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File status - open/close ??

Is there any commands in UNIX, like isopen(),isclose() to know whether a file has been opened for read/write purpose.? Thanks (3 Replies)
Discussion started by: Pal
3 Replies

2. Shell Programming and Scripting

how to make your bash script run on a machine with csh and bash

hi, i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies

3. Windows & DOS: Issues & Discussions

Can DOS close an open file?

I'm trying to setup a cron job for my brother that goes out to the web and retrieves an excel file and overwrites the existing copy on his desktop. The problem I'm facing is I have to kill the process (excel.exe) if the file is open while the batch file runs, otherwise, it will create another copy... (2 Replies)
Discussion started by: quattro20v
2 Replies

4. UNIX for Dummies Questions & Answers

Emptying a file (bring the size of the file down to 0 , or close to 0)

Hi I tried to empty an existing file (bring the size of the file down to 0). When I used “> myFile” or “cat </dev/null >myFile”, when I do a “ls –la”, the file size shows as 0. I then wrote 540 lines to the file, and then opened it using vi, I see something like this: "myFile" 540 lines,... (3 Replies)
Discussion started by: qmqmqm
3 Replies

5. UNIX for Dummies Questions & Answers

How do you close and launch X Window in the Bash shell?

What is the Unix command(s) to close the X Window in the Bash shell to get me into text mode. Also need the command to relaunch it from the text mode. Thanks. (1 Reply)
Discussion started by: jacatone
1 Replies

6. Shell Programming and Scripting

how to make my own file as a running log file in bash

Hi, I have written a small script from that iam appending the output to a file.If multiple users invoke the same script or if i invoke the same script n number of times (using &), the output file(ZZ/OUT) contains messup information. #!/bin/bash # echo "Hello" >> /tmp/ZZ/OUT sleep 10 echo... (4 Replies)
Discussion started by: blrguest
4 Replies

7. Programming

when parent process close, how to close the child?

can someone provide an example, where if the parent process quits for any reason, then the child process will also close? (3 Replies)
Discussion started by: omega666
3 Replies

8. Shell Programming and Scripting

Make a password protected bash script resist/refuse “bash -x” when the password is given

I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored. The code: read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
Discussion started by: frad
7 Replies

9. Shell Programming and Scripting

Bash - make csv file

Hello, im trying to make csv file from a text file that it is the output of pssh command (multiple ssh ) now if i run the command date on all of our servers: i get this output : 14:02:46 192.168.25.230:22 Thu Jul 6 14:02:46 EEST 2017 192.168.70.230: Thu Jul 6 12:02:46 BST 2017 ... (1 Reply)
Discussion started by: batchenr
1 Replies

10. Shell Programming and Scripting

Terminal running bash/rsync script does not close with exit (MacOS High SIerra)

Hello, I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using, #!/bin/bash # main backup location, trailing slash included backup_loc="/Volumes/Archive_Volume/00_macos_backup/" # generic backup function function backup {... (12 Replies)
Discussion started by: LMHmedchem
12 Replies
term(7) 						 Miscellaneous Information Manual						   term(7)

Name
       term - conventional names for terminals

Description
       Certain commands use these terminal names. They are maintained as part of the shell environment. For further information, see and

       adm3a	 Lear-Siegler ADM-3a
       2621	 Hewlett-Packard HP262? series terminals
       hp	 Hewlett-Packard HP264? series terminals
       c100	 Human Designed Systems Concept 100
       h19	 Heathkit H19
       mime	 Microterm mime in enhanced ACT IV mode
       1620	 Diablo 1620 (and others using HyType II)
       300	 DASI/DTC/GSI 300 (and others using HyType I)
       33	 Teletype Model 33
       37	 Teletype Model 37
       43	 Teletype Model 43
       735	 Texas Instruments TI735 (and TI725)
       745	 Texas Instruments TI745
       dumb	 Terminals with no special features
       dialup	 A terminal on a phone line with no known characteristics
       network	 A terminal on a network connection with no known characteristics
       4014	 Tektronix 4014
       vt52	 Digital Equipment Corp. VT52
       vt100	 Digital Equipment Corp. VT100
       vt200	 Digital Equipment Corp. VT200 - used on VT220, VT240
       vt300	 Digital Equipment Corp. VT300 - used on VT330, VT340
       xterm	 xterm terminal emulator, X window system

       See for an up-to-date and locally correct list.	See for more information on

       Commands  whose	behavior may depend on the terminal, either consult TERM in the environment, or accept arguments of the form where term is
       one of the names given above.

See Also
       clear(1), ex(1), more(1), nroff(1), plot(1g), sh(1), stty(1), tabs(1), tset(1), ul(1), termcap(3x), termcap(5), environ(7)

																	   term(7)
All times are GMT -4. The time now is 09:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy