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
# 1  
Old 12-03-2007
blink a text/message in a ksh script


can anyone tell me how to bink a text in a ksh script
for e,g
file 1
#!/bin/ksh
"this is my file"
-----------------------------------------------
i want "this is my file" text to blink.thanks
# 2  
Old 12-03-2007
I'm not at a UNIX box at the moment, so can't give details, but the "tput" command may do it for you.
# 3  
Old 12-03-2007
u mean to say that i have set the command as

tput this is my file
# 4  
Old 12-03-2007
still not getting

can u tell me how to use thid tput in the file
# 5  
Old 12-03-2007
You could try:

while true;do clear;sleep 1;echo "This is my file";sleep1; done

This is an infinite loop so you have to set some conditions to get out of it
based upon your requirements.

HTH
# 6  
Old 12-03-2007
its working.........but u i just need the text to be working
but its not coming out of looop
# 7  
Old 12-03-2007
It sure is an infinite loop. The number of times your text should blink would be decided upon your requirements. I have made it blink infintely just to show
the concept. You can tweak it to your requirements.

enc.
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