I need a shell script to simultaneously run multiple instances of a compiled c code
can some one please help i'm using BASH
arjayes
0
Newbie Poster
Recommended Answers
Jump to PostOne way to do it, also assuming know how many instances of it you want to run, is in a loop, start the process in the background.
while (x < counter){ ./process& x++; }
Jump to PostThe while loop was pseudocode to give you an idea of what you might need. I am sorry if I confused you.
Check out this tutorial, that tells you how to do loops in bash scripting.
All 5 Replies
stilllearning
148
Posting Whiz
arjayes
0
Newbie Poster
stilllearning
148
Posting Whiz
eggi
92
Posting Whiz
arjayes
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.