Ask A Question
 
jt_5353
Fresh Boarder
Blog Posts: 0
Forum Posts: 13
Rating: 0ApplaudCriticize
Posted 4 Months ago #1
hallo!

following problem:

I call the script with: 'script A B A' my problem: following parts should be executed: run X run X run Y run X

BUT following parts are executed: run X run X run X

if $1 is 'B' in the main while-loop, 'run X' will be executed, but 'run Y' won't!

this depends on the $command ($command is a script, that also executes a binary!)

so my question is: WHY??? - how to execute $command, so the script will return from 'run X' and continue with 'run Y'???

if $command is a 'nice' command, output is as expected! BUT if $command is a 'bad' command, I don't understand, why 'run Y' is never called!

thx for ANY hints!
Answer
gromit
Fresh Boarder
Blog Posts: 0
Forum Posts: 8
Rating: 0ApplaudCriticize
Posted 4 Months ago #2
$command is another shellscript (not written by me):
Answer
sweetfresa14
Fresh Boarder
Blog Posts: 0
Forum Posts: 9
Rating: 0ApplaudCriticize
Posted 4 Months ago #3
Your english is insufficiently clear. What you say makes no sense. Just show the two scripts and state the problem clearly. As it is, even your problem description is incomprehensible. Write in german if you prefer. To be specific 'why 'run Y' is never called' is incomprehenisble, since 'run' is not a command and the line 'run_binary' (the only other thing that has the word 'run' in) is called in the fragment you have shown.
Answer

Spread the Word!

Four out of five users would recommend us to a friend. Shouldn't you?
Link to Us    Tell a Friend

Related Posts:

The Content on this site is provided for general information purposes only. Your use of the Content, or any part thereof, is made solely at Your own risk and responsibility. By entering this site you declare you read and agreed to its Terms, Rules & Privacy.
Copyright © 2006 - 2010 My Linux Gang