Hello. I am trying to work on some school work, but seem a little stumped here. We are asked to run a script through terminal that pretty much just keeps repeating and repeating itself. Here is the code:
#!/bin/bash
let i=0
while true
do
echo $i
if [ $i -gt 100 ]
then
let i=0
fi
let i=i+1
done
--
When I ran that command in one terminal window, and then I open up another command window and do the ps command which shows me what processes are running, but it doesn't list it as a process running. Why? How come it doesn't display it?
Thanks
#!/bin/bash
let i=0
while true
do
echo $i
if [ $i -gt 100 ]
then
let i=0
fi
let i=i+1
done
--
When I ran that command in one terminal window, and then I open up another command window and do the ps command which shows me what processes are running, but it doesn't list it as a process running. Why? How come it doesn't display it?
Thanks