Linux

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

clear in Linux ksh


👤 Login to reply

    #1  
Old 12-07-2010
pradebban pradebban is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 24 July 2013, 4:04 AM EDT
Location: Mumbai
Posts: 30
Thanks: 15
Thanked 0 Times in 0 Posts
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.

---------- 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
Sponsored Links
    #2  
Old 12-07-2010
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 476 Times in 438 Posts
what happens if you enter "clear" from the command line? Does it clear the terminal window?
Sponsored Links
    #3  
Old 05-26-2011
pradebban pradebban is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 24 July 2013, 4:04 AM EDT
Location: Mumbai
Posts: 30
Thanks: 15
Thanked 0 Times in 0 Posts
yes it does!!
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Clear wtmp x_adm AIX 2 04-23-2010 09:10 AM
Ho to clear a MQ queue : Ch Bushu UNIX for Advanced & Expert Users 0 05-07-2009 09:45 AM
How to clear a file shira Shell Programming and Scripting 2 01-27-2009 10:13 AM
how to clear history gincemathew UNIX for Dummies Questions & Answers 7 09-01-2008 03:43 PM
clear memory fenomen UNIX for Dummies Questions & Answers 2 06-24-2003 09:33 AM



All times are GMT -4. The time now is 11:08 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?