• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Unix shell scripting help

rgwalt

Diamond Member
I need some help with some Unix shell scripting. I'm trying to write a simple shell script that will run a program multiple times. The pseudo code will look something like this:

do while count < limit
execute program nd_eqn
wait for nd_eqn to finish and terminate
increment count
End do

Is this possible with a shell script? If so, could someone give me a hand? I would appreciate it.

Ryan
 
Yeah, you could do it.

for example in C shell some of loop control.

while (express)
command(s)
end

or

foreach stuff (list)
command(s)
end

it also has if/else if/else/endif for branch control.
 
Thanks for the reply. I *think* I got it working. I'm letting my code run right now. Hopefully it solves the problem I'm having with a memory leak.

Ryan
 
Back
Top