When I run the script, the cursor starts on the wrong line?

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions When I run the script, the cursor starts on the wrong line?
Prev   Next
# 3  
Old 10-19-2014
If we assume that TERM is set correctly and that you have a terminal capable of the cursor positioning the tput commands are supposed to do, the code you have shown us is incomplete.

You said you're using "looping logic, trap, tput, if, while", but your loop is not terminated, there is no trap command, you use $looptest and $phonenum but neither of these variables are set, and there is no code that attempts to position the cursor after the Corporate Phone List Additions entry form is written to the screen.

If you don't show us the commands that aren't working correctly, there isn't much we can do to help you fix it.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Holding cursor position on one line

Hi there. It's easier to explain this with a pseudo code, I hope this makes sense: var1=hello echo $var1 some kind of loop echo loop counter done How do I hold the cursor position immediately behind the last output so I'd get something like: hello123456789 DOS used to use ","... (5 Replies)
Discussion started by: MuntyScrunt
5 Replies

2. Shell Programming and Scripting

Need to write a shell script that starts one, then kills it, then starts another?

This is on a CentOS box, I have two scripts that need to run in order. I want to write a shell script that calls the first script, lets it run and then terminates it after a certain number of hours (that I specify of course), and then calls the second script (they can't run simultaneously) which... (3 Replies)
Discussion started by: btramer
3 Replies

3. Shell Programming and Scripting

Moving line up if line starts with + sign.

Hello everyone, I'm struggling with this command: awk '!/^\+/{ORS=FS}/^\+/{ORS=RS}1' file1 > file2 What I want to do is to move any line that starts with the + sign 1 up, so its the continuation of the previous. The above command is messing the whole output, can you please let me know... (8 Replies)
Discussion started by: demmel
8 Replies

4. Shell Programming and Scripting

While loop - how to run processes one after another (2nd starts after first completes, and so on)

I'm a programming noob. I'm trying to run a memory intensive process for many files. But when I use the following script, it runs fine for the first 5-7 files, then runs out of memory. Monitoring the output files, it's clear the processes are going on in parallel. Once 5-7 of the files are being... (18 Replies)
Discussion started by: pathunkathunk
18 Replies

5. Shell Programming and Scripting

Merge multiple lines to one line when line starts with and ends with

example: comment Now_TB.table column errac is for error messages 1 - first 2 - second 3 -third ; in this example I need to be able to grab the comment as first word and ; as the last word and it might span a few lines. I need it to be put all in one line without line breaks so I can... (4 Replies)
Discussion started by: wambli
4 Replies

6. Solaris

run a service via startup script (correct me if I am wrong)

Environment Solaris 9 I have configured the Solaris9 as NTP client in which Solaris9 is syncing the time with a windows2008 R2 Server which is runing fine. Now I want that the xntpd service should start at startup. I did this via a script. Kindly correct if I did any thing wrong: 1.)Made... (9 Replies)
Discussion started by: z_haseeb
9 Replies

7. UNIX for Dummies Questions & Answers

Two questions. First one; What are the ways in which a program starts to run.

This is my first post here so hello everyone! I know that a command of the programs name can start a program and clicking on a icon in GUI can as well as a startup shell script but how do I educate myself of the method that starts an application? Does the GUI run a script? What are the ways/ way... (2 Replies)
Discussion started by: theKbStockpiler
2 Replies

8. UNIX for Dummies Questions & Answers

how can I run something as root (modprobe, to be exact) every time computer starts.

I have the root password for my box, but I'm ignorant. So, every time I start my computer, I have to run this command /sbin/modprobe fuse as su, so that I can do other stuff (like mount remote directories locally using sshfs) I guess there's some file, like .bashrc, only it's applicable... (4 Replies)
Discussion started by: tphyahoo
4 Replies

9. Shell Programming and Scripting

How to read a line when it starts with spaces

Hi , I use read command to get the input text, When i try to get the line starting with spaces or ending with spaces it automatically truncates the spaces and displays the remaining content. Code i tried (UserInput.sh): #!/bin/bash echo -n "Enter some text > " read text echo "You... (3 Replies)
Discussion started by: PrakashChinna
3 Replies

10. Shell Programming and Scripting

Whats wrong with this 5 line script!

Hi #!/bin/sh user=$1 if " -eq 0 ] echo "No" else echo "Yes" fi I'm not quite sure whats wrong with this but I know its something silly. Any ideas? Thanks (9 Replies)
Discussion started by: c19h28O2
9 Replies
Login or Register to Ask a Question
EZSTREAM-FILE.SH(1)					    BSD General Commands Manual 				       EZSTREAM-FILE.SH(1)

NAME
ezstream-file -- script to stream files from the command line SYNOPSIS
ezstream-file [-hnqVv] [-T cfg_template] [file ...] DESCRIPTION
The ezstream-file script uses an ezstream configuration file template to stream a list of files given on the command line, or via standard input. In other words, filenames are written to a temporary playlist, and a template-based configuration is generated to stream them. The path to a configuration template must be provided, either by using the -T command line argument, or the EZSTREAM_TEMPLATE environment variable. The configuration template must be a valid playlist configuration, and contain the follwing configuration statement: <filename>%FILENAME%</filename> If no input files are specified, the list of files to be streamed are read from standard input. Lastly, the EZSTREAM environment variable allows to specify an alternate ezstream binary. Command line parameters -h Print a summary of available command line parameters with short descriptions and exit. -n (Passed to ezstream.) Normalize metadata strings by removing excess whitespaces. -q (Passed to ezstream.) Be more quiet. Suppress the output that external programs send to standard error. -T cfg_template Use the configuration in cfg_template, overriding the default set in the EZSTREAM_TEMPLATE environment variable. -V Print the ezstream-file version number and exit. -v (Passed to ezstream.) Produce more verbose output from ezstream. Use twice for even more verbose output. FILES
/usr/share/doc/ezstream/examples Directory containing example configuration files for various uses of ezstream, as well as example playlist and metadata scripts. SEE ALSO
ezstream(1) AUTHORS
The ezstream-file script and this manual were written by Moritz Grimm <mdgrimm@gmx.net>. ezstream 0.5.6 September 27, 2009 ezstream 0.5.6