hi,
i run a script that it read a file and extract data:
eafs:~/root #./script.sh input.txt
When I want to see if my script is started I do:
eafs:~/root #ps -ef | grep script.sh
and my output is:
root 10805 1 2 16:35 ? 00:01:42 /bin/sh ./script.sh input.txt
root 3629 1 0 16:52 ? 00:00:00 /bin/sh ./script.sh input.txt
root 3644 3629 2 16:52 ? 00:01:25 /bin/sh ./script.sh input.txt
root 22149 27917 0 17:14 pts/8 00:00:00 /bin/sh ./script.sh input.txt
root 22157 22149 2 17:14 pts/8 00:00:46 /bin/sh ./script.sh input.txt
root 5546 10805 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
root 5548 5546 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
root 5549 5546 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
root 5553 3644 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
thanks.
i run a script that it read a file and extract data:
eafs:~/root #./script.sh input.txt
When I want to see if my script is started I do:
eafs:~/root #ps -ef | grep script.sh
and my output is:
root 10805 1 2 16:35 ? 00:01:42 /bin/sh ./script.sh input.txt
root 3629 1 0 16:52 ? 00:00:00 /bin/sh ./script.sh input.txt
root 3644 3629 2 16:52 ? 00:01:25 /bin/sh ./script.sh input.txt
root 22149 27917 0 17:14 pts/8 00:00:00 /bin/sh ./script.sh input.txt
root 22157 22149 2 17:14 pts/8 00:00:46 /bin/sh ./script.sh input.txt
root 5546 10805 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
root 5548 5546 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
root 5549 5546 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
root 5553 3644 0 17:43 ? 00:00:00 /bin/sh ./script.sh input.txt
thanks.