Sponsored Content
Top Forums Shell Programming and Scripting rsh script with inside a for loop Post 96432 by trekianov on Friday 20th of January 2006 03:56:23 AM
Old 01-20-2006
suggestion

hi, thank you for the suggestion, but the thread you have pointed out is quite different from my issue:
I want to perform a loop inside the compound command. in any case I have tried the suggestion, but didn't worked.
Cheers Michele
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

rsh command in a while loop

Hi , reading a "file1" with 2 data in each line (VAR1 and VAR2) , i'm using a while loop like this : cat file1|awk '{print $1,$2}'|while read VAR1 VA2 do echo $VAR1 echo $VAR2 done as this example shows , it works but if between do and done i use a "rsh" command , the script reads... (6 Replies)
Discussion started by: Nicol
6 Replies

2. Shell Programming and Scripting

rsh and for loop

hi I wanted to use the for loop structure in tandem with rsh command and the result to be redirected into a local .lst file within a shell script . Tried the following but does not help :confused: . rsh ABCD "cd /bosp/local/home/linus/;for i in `ls -ltr | grep ^- | awk {'print $9'}` do... (4 Replies)
Discussion started by: newbee2005
4 Replies

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

4. Shell Programming and Scripting

Using variables created sequentially in a loop while still inside of the loop [bash]

I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends. As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Discussion started by: DeCoTwc
2 Replies

5. Shell Programming and Scripting

How to give a variable output name in a shell script inside a for loop

Hi all I run my program prog.c in the following way : $ ./prog 1 > output.txt where 1 is a user defined initial value used by the program. But now I want to run it for many a thousand initial values, 1-1000, and store all the outputs in different files. Like $ ./prog 1... (1 Reply)
Discussion started by: alice06
1 Replies

6. Shell Programming and Scripting

If inside while loop script error

#!/bin/bash var1=0 x=1 while do echo "Welcome $x times" var1=$(prstat -Lc 1 1 | nawk ' /^Total/ {print substr($8,1,length($8)-1)}') echo "$var1" if then break fi sleep 6 x=$(( $x + 1 )) done giving output: bash-3.00$ ./ch1.sh Welcome 1 times 5.90 (9 Replies)
Discussion started by: vivek1489
9 Replies

7. Shell Programming and Scripting

help in running while loop inside a shell script

I have an input file at ./$1.txt with content of seq numbers like : 1234567890 1234589700 . . so on.. I need to take each seq nbr from the input file ,run the query below: select ackname,seqnbr from event where event_text like '%seqnbr( from the input file)' and redirect the... (11 Replies)
Discussion started by: rkrish
11 Replies

8. Shell Programming and Scripting

Problem passing a search pattern to AWK inside a script loop

Learning, stumbling! My progress in shell scripting is slow. Now I have this doubt: I have the following file (users.txt): AU0909,on AU0309,off AU0209,on AU0109,off And this file (userson.txt) AU0909 AU0209 AU0109 AU0309 I just want to set those users on userson.txt to "off" in... (14 Replies)
Discussion started by: quinestor
14 Replies

9. Shell Programming and Scripting

Rsh reboot in a loop?

Hi folks. I'm trying to get the following script working for rebooting a bunch of clients. Up to now I've been using PSSH, but when they all startup again at the same time I get a few mount problems. So, I'm trying to stagger the reboot command. I know reboot will depend on what's running at... (3 Replies)
Discussion started by: MuntyScrunt
3 Replies

10. UNIX for Beginners Questions & Answers

How to write a Boolean variable which succeed and failed inside the if loop in shell script ?

I have if loop with multiple variable value check in if loop. How can i print only if loop satisfied variable and its value in shell script ? I dont want to check each variable in if loop. That makes my script larger. if ] then echo "Only satisfied variable with value" ... (3 Replies)
Discussion started by: prince1987
3 Replies
XmStringByteCompare(library call)										 XmStringByteCompare(library call)

NAME
XmStringByteCompare -- A compound string function that indicates the results of a byte-by-byte comparison SYNOPSIS
#include <Xm/Xm.h> Boolean XmStringByteCompare( XmString s1, XmString s2); DESCRIPTION
This function is obsolete and exists for compatibility with previous releases. XmStringByteCompare returns a Boolean indicating the results of a byte-by-byte comparison of two compound strings. In general, if two compound strings are created with the same (char *) string using XmStringCreateLocalized in the same language environ- ment, the compound strings compare as equal. If two compound strings are created with the same (char *) string and the same font list ele- ment tag set other than XmFONTLIST_DEFAULT_TAG using XmStringCreate, the strings compare as equal. In some cases, once a compound string is put into a widget, that string is converted into an internal form to allow faster processing. Part of the conversion process strips out unnecessary or redundant information. If an application then does an XtGetValues to retrieve a com- pound string from a widget (specifically, Label and all of its subclasses), it is not guaranteed that the compound string returned is byte- for-byte the same as the string given to the widget originally. s1 Specifies a compound string to be compared with s2 s2 Specifies a compound string to be compared with s1 RETURN
Returns True if two compound strings are identical byte-by-byte. RELATED
XmStringCreate(3) and XmStringCreateLocalized(3). XmStringByteCompare(library call)
All times are GMT -4. The time now is 01:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy