blink a text/message in a ksh script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting blink a text/message in a ksh script
# 8  
Old 12-03-2007
actually i have a file called swap


echo "WElcome to SWAPPING Program"
while true
do clear
sleep 1
echo "this is my file"
sleep 1
done

function swap
{

temp=$a
a=$b
b=$temp

echo "The swapped values are"

echo $a "\t\c"
echo $b
}


echo "Enter the 1st number"
read a
echo "Enter the second number"
read b

swap
echo $swap
--------------------------------------------------------------------

but it is only showing the blink part...can u tell me that it should blink the text ""this is my file" and then i can execute the remaining prgm.it should blink as well as i can run the prgm
# 9  
Old 12-03-2007
actually i have a file called swap


echo "WElcome to SWAPPING Program"
while true
do clear
sleep 1
echo "this is my file"
sleep 1
done

function swap
{

temp=$a
a=$b
b=$temp

echo "The swapped values are"

echo $a "\t\c"
echo $b
}


echo "Enter the 1st number"
read a
echo "Enter the second number"
read b

swap
echo $swap
--------------------------------------------------------------------

but it is only showing the blink part...can u tell me that it should blink the text ""this is my file" and then i can execute the remaining prgm.it should blink as well as i can run the prgm
# 10  
Old 12-03-2007
You need to do some research on tput and terminfo

man tput
man terminfo

Search the Web for tput and terminfo
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ssh from a ksh returning not found message

Script name is test.ksh I know that that the ssh command is working properly, this can be verified by the value returned in respond variable. It is unique to the remote server _____________________________________________________ respond=$(ssh $remoteHost find... (3 Replies)
Discussion started by: Adagio
3 Replies

2. Shell Programming and Scripting

KSH - help needed for creating a script to generate xml file from text file

Dear Members, I have a table in Oracle DB and one of its column name is INFO which has data in text format which we need to fetch in a script and create an xml file of a new table from the input. The contents of a single cell of INFO column is like: Area:app - aam Clean Up Criteria:... (0 Replies)
Discussion started by: Yoodit
0 Replies

3. Ubuntu

error message when installing ksh in ubuntu 10.04

Good afternoon. i installed ubuntu 10.04, but you know the default shell is bash and i tried to change to ksh (csh ksh) but not installed. I need your help, when trying to install ksh in ubuntu 10.04 in order to practice, i have an error message. in the terminal session i type as it says:... (1 Reply)
Discussion started by: alexcol
1 Replies

4. UNIX for Dummies Questions & Answers

BASH script that sends text message or email

Hi, I have a BASH shell script that batch processes data. I often start this script before I leave to go home for the day, and leave it processing over night. It has come to my attention that it would be very useful for me to add the capability of making the script notify me about certain things... (2 Replies)
Discussion started by: msb65
2 Replies

5. Shell Programming and Scripting

Script to cut the first word in Message Text

Hi, In my shell script, I am connecting to database and querying multiple columns in a table. MESSAGE_TEXT=`sqlplus -s /nolog <<end_log_stmt set heading off set feedback off set verify off set termout off set pages 0 CONNECT APPS/$USER_PWD Select order_number, id, error_message... (6 Replies)
Discussion started by: balajiora
6 Replies

6. Shell Programming and Scripting

how to BLINK on terminal???

hello sir, I want to blink a given text on the screen. I tried using the following :- I also used :- But still I am unable to see the text in the blinking effect.Can you please tell me where did I go wrong? Can you please tell me any other ways of blinking !!!!! (3 Replies)
Discussion started by: nsharath
3 Replies

7. Shell Programming and Scripting

KSH script -text file processing NULL issues

I'm trying to strip any garbage that may be at the end of my text file and that part is working. The problem only seems to be with the really long lines in the file. When the head command is executed I am directing the output to a new file. The new file always get a null in the 4096 position but... (2 Replies)
Discussion started by: geauxsaints
2 Replies

8. Shell Programming and Scripting

mailx: concatenating strings for message body (KSH)

Hi all, Think this is a pretty simple problem, but I've been thinking about it for a few days. Let's say that I'm going to have to output the contents of a file as the body of a mailx message. I'll probably do this: cat <filename> | mailx <extra commands> However, how do I go about doing... (1 Reply)
Discussion started by: rockysfr
1 Replies

9. UNIX for Dummies Questions & Answers

blink message..

hi all.. i need to know, how i can put a message on motd file...when the user loggon and the server send a welcome message but blink message... thank you... (1 Reply)
Discussion started by: chanfle
1 Replies

10. Shell Programming and Scripting

blink / flash echo text in a menu

I have a ksh script that is a login menu for my end users. I would like to have one line of the welcome message flash when there is a system notice about an impending outage. The welcome message is a series of echo statements which prints a text file "msg of the day" with the status msg. I tried... (1 Reply)
Discussion started by: MizzGail
1 Replies
Login or Register to Ask a Question