clear in Linux ksh

Tags
clear, ksh syntax, linux, linux equivalent of clear

 
Thread Tools Search this Thread
# 1  
Old 12-07-2010
clear in Linux ksh

Clear in Linux
#!/usr/bin/ksh

am using clear in the script, but it is not working,
it gives an error as follows,

'xterm': unknown terminal type.

please help out.Smilie

---------- Post updated at 01:19 PM ---------- Previous update was at 12:01 PM ----------

if [ $Usage -gt $limit ]
then
clear
echo -e "\t \t \tYour usage is greater than limit
else
clear
echo -e "\t \t \tYour usage is lesser than limit
fi
# 2  
Old 12-07-2010
what happens if you enter "clear" from the command line? Does it clear the terminal window?
# 3  
Old 05-26-2011
yes it does!!

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Sending mail with attachment(image) using sendmail in Linux(ksh) balakrishnaps Shell Programming and Scripting 1 12-13-2018 11:31 AM
Linux ksh script not working in crontab mrn6430 Red Hat 1 12-16-2015 09:12 PM
Clear standard input buffer for C program in Linux Abhishek_kumar Programming 1 08-08-2014 12:09 PM
Dot sourcing differences in ksh, AIX vs Linux vs Solaris charles_n_may UNIX for Advanced & Expert Users 9 02-10-2014 06:17 PM
ksh on UNIX and Linux rdogadin UNIX for Dummies Questions & Answers 3 10-30-2013 02:09 PM
ksh script migration from Solaris to Linux. Shivdatta Shell Programming and Scripting 6 09-04-2013 05:12 AM
Clear history in ksh Priya Amaresh Shell Programming and Scripting 5 07-19-2013 11:54 AM
AWK Program Not Executing On Linux with KSH JolietJake Shell Programming and Scripting 5 05-17-2012 04:30 PM
how to clear history in ksh? lg123 Shell Programming and Scripting 4 01-01-2012 07:46 AM
How to clear history in Linux NARESH1302 UNIX for Dummies Questions & Answers 7 12-15-2010 08:01 AM
Newline charachter in Ksh-Linux Sanju1236 Shell Programming and Scripting 3 01-18-2010 05:06 PM
New line character problem with ksh on Redhat Linux rijeshpp Shell Programming and Scripting 5 12-23-2009 02:02 AM
Need to cut filename in LINUX ksh juliyp Shell Programming and Scripting 10 06-09-2009 10:38 AM
ksh/Linux: Variable scoping issue? Pl. help! jasmeet100 Shell Programming and Scripting 2 09-30-2005 07:35 PM
Script Migration From HP to Linux (KSH) Omkumar Shell Programming and Scripting 1 09-02-2005 10:44 AM