Sponsored Content
Top Forums Shell Programming and Scripting Breaking Loop by using another script Post 302339172 by anushree.a on Thursday 30th of July 2009 02:20:46 AM
Old 07-30-2009
Can somebody please guide me.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

rsh breaking me out of loop

Hey all I have two scripts, one script containing the guts of my code. The other simply loops through a list, calling the other script on each iteration. Problem is when I add the line `/usr/bin/rsh -l root $HOSTNAME ""` to my main script, the loop never seems to exectute any more... (1 Reply)
Discussion started by: mark007
1 Replies

2. Linux

breaking out of while loop

Hi , I am running this script ( pasting only error code ) to generate some ddl definition for tables . But what I want is to break out of the db2look part when the base_table is not like DIM_$TN or FACT_$TN . After this it should come back to while loop to read the next TN . I read the other... (3 Replies)
Discussion started by: capri_drm
3 Replies

3. Shell Programming and Scripting

Breaking if-else loop and variety of comparisions

Hello Friends, Im trying to write a script to invoke nagios. In order to do this I grep some words that comes from output of some backup scripts. When there is "End-of-tape detected" in directed output logs it should give alarm. First I would like to know if there is any better way to write... (5 Replies)
Discussion started by: EAGL€
5 Replies

4. SCO

Restrict user from breaking out of login script

I have a login script similar to where the user's shell in /etc/passwd is set to csh: echo "In .login" setenv SHELL /bin/csh /bin/sh -c trap "" 1 2 3 5 6 7 8 15 /path/to/application logout --------------------- however, even with the trap command the user is still able to... (1 Reply)
Discussion started by: kuliksco
1 Replies

5. Shell Programming and Scripting

Stop a program without breaking the script?

Hello there! I am creating a script, that among other functions will run iperf (network stress tool) either on server or client mode. The thing is that it will run forever if the user does not stop it or break it. CTRL-C will break it. I need a method, however, that will break iperf and then... (2 Replies)
Discussion started by: ppucci
2 Replies

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

7. Shell Programming and Scripting

Breaking out of loop

I have a main script with while loop having for loop inside. Again in for loop based on if condition few functions will be called. So when a function is called for certain condition it should come out from the main for loop and should continue with while loop. Let me explain with example here: I... (6 Replies)
Discussion started by: vpv0002
6 Replies

8. Shell Programming and Scripting

breaking for loop

Dear Friends, Here I need your guidance once again. I have for loop which check all files in a folder for a particular string. If the string is found in a file it returns value other than 0 else returns 0 value in variable t2. At times the string which we are looking for is in first file... (1 Reply)
Discussion started by: anushree.a
1 Replies

9. Shell Programming and Scripting

Ssh to remote server loop is breaking

hi All, cat login.list server1 userid1 server2 userid2 server3 userid3 ---------------------------------------- #SSHSCRIPT.ksh FILE=login.list while read vah vah_id do ssh $vah -l $vah_id "pwd" done < "$FILE" ----------------------------------------- When i... (2 Replies)
Discussion started by: raghur77
2 Replies

10. Shell Programming and Scripting

While loop breaking when using "ssh" command inside

Hi , I am trying to read a list of hosts from a config file and trying to get file list from that host. For this I have used one while loop. cat "$ARCHIVE_CFG_FILE" | sed '/^$/d' | sed '/^#/d' | while read ARCHIVE_CFG do SOURCE_SERVER_NAME=`echo "$ARCHIVE_CFG" | awk -F '|' '{ print... (2 Replies)
Discussion started by: Anupam_Halder
2 Replies
OpenGuides::Test(3pm)					User Contributed Perl Documentation				     OpenGuides::Test(3pm)

NAME
OpenGuides::Test - Methods to help test OpenGuides applications. DESCRIPTION
Provides methods to help when writing tests for OpenGuides. Distributed and installed as part of the OpenGuides project, not intended for independent installation. This documentation is probably only useful to OpenGuides developers. SYNOPSIS
use OpenGuides; use OpenGuides::Test; OpenGuides::Test::refresh_db(); my $config = OpenGuides::Test->make_basic_config; $config->default_language( "nl" ); my $guide = OpenGuides->new( config => $config ); OpenGuides::Test->write_data( guide => $guide, node => "Crabtree Tavern", os_x => 523465, os_y => 177490, categories => "Pubs", ); METHODS
make_basic_config my $config = OpenGuides::Test->make_basic_config; $config->default_language( "nl" ); Makes an OpenGuides::Config object with needed fields pre-filled. You can mess with it as you like then. write_data my $config = OpenGuides::Test->make_basic_config; my $guide = OpenGuides->new( config => $config ); OpenGuides::Test->write_data( guide => $guide, node => "Crabtree Tavern", os_x => 523465, os_y => 177490, categories => "Pubs Pub Food", ); This method calls the "make_cgi_object" method to make its CGI object; you can supply values for any key mentioned there. You should supply them exactly as they would come from a CGI form, eg lines in a textarea are separated by " ". This method will automatically grab the checksum from the database, so even if the node already exists your data will still be written. If you don't want this behaviour (for example, if you're testing edit conflicts) then pass in a true value to the "omit_checksum" parameter: OpenGuides::Test->write_data( guide => $guide, node => "Crabtree Tavern", omit_checksum => 1, ); If you want to grab the output, pass a true value to "return_output": my $output = OpenGuides::Test->write_data( guide => $guide, node => "Crabtree Tavern", return_output => 1, ); Similarly, if you pass a true value to "return_tt_vars", the return value will be the variables which would have been passed to the template for output: my %vars = OpenGuides::Test->write_data( guide => $guide, node => "Crabtree Tavern", return_tt_vars => 1, ); make_cgi_object my $q = OpenGuides::Test->make_cgi_object; You can supply values for the following keys: "content", "categories", "locales", "node_image", "node_image_licence", "node_image_copyright", "node_image_url", "phone", "fax", "website", "hours_text", "address", "postcode", "map_link", "os_x", "os_y", "osie_x", "osie_y", "latitude", "longitude", "summary", "username", "comment", "edit_type". You should supply them exactly as they would come from a CGI form, eg lines in a textarea are separated by " ". refresh_db Openguides::Test::refresh_db(); Unlink the existing SQLite database t/node.db and plucene indexes. Then create a new SQLite database t/node.db AUTHOR
The OpenGuides Project (openguides-dev@lists.openguides.org) COPYRIGHT
Copyright (C) 2004-2009 The OpenGuides Project. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2013-01-11 OpenGuides::Test(3pm)
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy