Timeline for Bash Script - case esac - fails
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 3, 2017 at 7:36 | vote | accept | Parsa Samet | ||
| Apr 3, 2017 at 7:34 | answer | added | user172564 | timeline score: 1 | |
| Apr 3, 2017 at 7:33 | comment | added | Parsa Samet | linux built in which will be called by x.sh script in four different ways, and that's why I need exact 4 numbers of the process. | |
| Apr 3, 2017 at 7:30 | comment | added | ss_iwe | Is the command a script or a linux built in or a c/java binary? | |
| Apr 3, 2017 at 7:27 | comment | added | Parsa Samet | No, x.sh is calling command inside itself, so pidof command will show the number of command not x.sh. | |
| Apr 3, 2017 at 7:25 | comment | added | muru | If you're literally running pidof command, when the command you're actually running is /usr/bin/sh x.sh.... won't the number of PIDs be always 0? | |
| Apr 3, 2017 at 7:00 | history | edited | Parsa Samet | CC BY-SA 3.0 | added 204 characters in body |
| Apr 3, 2017 at 6:40 | history | edited | Parsa Samet | CC BY-SA 3.0 | added 70 characters in body |
| Apr 3, 2017 at 6:20 | history | edited | Parsa Samet | CC BY-SA 3.0 | added 2 characters in body |
| Apr 3, 2017 at 6:20 | comment | added | Parsa Samet | @jordanm Did what you said, but it got more again! BTW, won't [0-3] be the same as *) including 1-2-3 since not mentioned in first conditions? | |
| Apr 3, 2017 at 6:18 | comment | added | jordanm | Uh, so you intend to kill all processes on your system which contain both the letters "x" and "y"? This will never allow it get up to 4, so it will only work if you have exactly 4 the first time you run it. The first condition should probably be [0-3]. | |
| Apr 3, 2017 at 6:13 | history | asked | Parsa Samet | CC BY-SA 3.0 |