Sponsored Content
Top Forums Shell Programming and Scripting csh exit while loop on keystroke Post 59376 by seg on Friday 17th of December 2004 08:21:18 AM
Old 12-17-2004
csh exit while loop on keystroke

#!/bin/csh

I'm using a `while(1)` loop to dispaly real-time information about various files on my system, and I use ^C to exit it when needed. I was hoping there was a way to exit the script on a normal keystroke such as "q". Can someone point me in the right direction? I'm willing to use a different method for looping if needed.

Thanks,
-Seg
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

while loop exit

i wrote a while script as part of a huge program. this script, once picked, begins to output data to the person using it. pretty easy, as the person doesn't have to keep typing commands to get the output that the while loop automatically throws out. now, the thing is, while this while-script... (3 Replies)
Discussion started by: Terrible
3 Replies

2. UNIX for Dummies Questions & Answers

a simple loop in csh

Hello, I have a file with over 48000 lines and I need to select certain parts of the file. I know which awk commands work for what I need, I just need some help putting together a loop that will repeat the command. These are the commands that work: awk 'NR < 6' plot.out > plot.test (I get... (1 Reply)
Discussion started by: dsstamps
1 Replies

3. UNIX for Dummies Questions & Answers

For loop control with two variables in csh shell

Hi All How can i control for loop with two different variables in csh shell Regards Nikhil (1 Reply)
Discussion started by: Nikhilindurkar
1 Replies

4. Shell Programming and Scripting

Exit from loop

hi, how to exit from "if" loop?actually i have mutliple "if" conditions, i have to exit from each "if" loop,if it is true...:confused: Please suggest me... (3 Replies)
Discussion started by: sreelu
3 Replies

5. Shell Programming and Scripting

How to loop use while loop in csh script?

Hi all, i got 2 text file. file.txt value.txt i want use C shell script to write out while both of the file got different limit....how i going to write it in 1 while loop? (4 Replies)
Discussion started by: proghack
4 Replies

6. Shell Programming and Scripting

Creating a loop in csh

I have the following code and want to use a loop to output the results to the fparams file. if ($optparams == 1) then # Set the tdarwin parameters set txt01 = "Call to raytrac.csh" set txt02 = "" set txt03 = "./Scripts/raytrac.csh $*" set txt04 = "" set txt05 =... (0 Replies)
Discussion started by: kristinu
0 Replies

7. Emergency UNIX and Linux Support

For loop exit

Below for loop not exiting. Can someone help? JBOSS_INST_ARGS=01 02 if ; then for i in $JBOSS_INST_ARGS; do /u/jboss-6.1.0.Final/bin/jboss_init_wise$i.sh start; done (8 Replies)
Discussion started by: vino_hymi
8 Replies

8. UNIX for Dummies Questions & Answers

foreach loop in csh

Hi everyone I'm new to unix and encountered a small problem i couldnt find out a reason why it doesn't work..please help.. in my csh script when i tried to use the foreach loop like this: foreach x ( ls ) echo $x end when i tried to run it, it printed out 'ls' to the std out instead of... (3 Replies)
Discussion started by: ymc1g11
3 Replies

9. Shell Programming and Scripting

CSH While Loop

Hi all, How can I make this work with CSH: set K=3 set I=1 while ($I != $K) echo "K="$I @ I = $K + 1 end Any help you can provide or links that can help is greatly appreciated. With above I get an error "while: Expression Syntax" (3 Replies)
Discussion started by: manglalayag
3 Replies

10. UNIX for Dummies Questions & Answers

Foreach loop through subdirectories in csh

Hi You might find it very trivial but actually don't know how to loop through all sub-directories and their child directories into a csh. bash was easier I believe but here I am, stuck with csh. So elaborately here's my problem: Let's say I have my parent directory named C-H/ under which I have... (15 Replies)
Discussion started by: saleheen
15 Replies
Bio::Tools::Seg(3pm)					User Contributed Perl Documentation				      Bio::Tools::Seg(3pm)

NAME
Bio::Tools::Seg - parse "seg" output SYNOPSIS
use Bio::Tools::Seg; my $parser = Bio::Tools::Seg->(-file => 'seg.fasta'); while ( my $f = $parser->next_result ) { if ($f->score < 1.5) { print $f->location->to_FTstring, " is low complexity "; } } DESCRIPTION
"seg" identifies low-complexity regions on a protein sequence. It is usually part of the "WU-BLAST" and "InterProScan" packages. The Bio::Tools::Seg module will only parse the "fasta" output modes of "seg", i.e. "seg -l" (low complexity regions only), "seg -h" (high complexity regions only), or "seg -a" (both low and high). It creates a Bio::SeqFeature::Generic for each FASTA-like entry found in the input file. It is up to the user to appropriately filter these using the feature's score. FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHOR - Torsten Seemann Email - torsten.seemann AT infotech.monash.edu.au CONTRIBUTOR - Bala Email - savikalpa@fugu-sg.org APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ new Title : new Usage : my $obj = Bio::Tools::Seg->new(); Function: Builds a new Bio::Tools::Seg object Returns : Bio::Tools::Seg Args : -fh/-file => $val, # for initing input, see Bio::Root::IO next_result Title : next_result Usage : my $feat = $seg->next_result Function: Get the next result set from parser data Returns : Bio::SeqFeature::Generic Args : none perl v5.14.2 2012-03-02 Bio::Tools::Seg(3pm)
All times are GMT -4. The time now is 05:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy