Skip to main content
16 events
when toggle format what by license comment
Jan 28, 2019 at 23:42 vote accept T. Cubbin
Jan 28, 2019 at 22:05 comment added T. Cubbin @Milliways Like I said I'm super new to bash programming but it's the only way that my current job wanted something done via a RaspPi. This is just cobbled together example code based on previous experience. I'm more than open to other ways to accomplish the same thing.
Jan 27, 2019 at 17:59 history edited jake CC BY-SA 4.0
added 172 characters in body
Jan 27, 2019 at 12:36 comment added jake @Milliways You're right! Just pointed out the obvious mistakes in the code above. Why don't you let us know how to do it properly?
Jan 27, 2019 at 6:20 comment added Milliways This looks like a kludge on top of a kludge. Hopefully any other users would not see this as viable code.
Jan 26, 2019 at 17:57 history edited jake CC BY-SA 4.0
added 4 characters in body
Jan 26, 2019 at 16:41 comment added jake @RogerJones In his version it would, not in mine, because it kills the old process only if a new one is started.
Jan 26, 2019 at 16:37 comment added Roger Jones Fair enough, although with out it would the script not kill feh as soon as it's launched? OP said "...displays it in feh fullscreened, wait's an amount of time and then kills the process..."
Jan 26, 2019 at 14:30 comment added jake @RogerJones I added it. Thought the sleep 10 was maybe some workaround.
Jan 26, 2019 at 14:29 history edited jake CC BY-SA 4.0
added 348 characters in body
Jan 26, 2019 at 13:31 comment added Roger Jones +1 to @jake or the answer (add & at the end of the command to background it) but you forgot to add the sleep 10 delay in the loop that the OP wanted in the question.
Jan 26, 2019 at 13:25 history edited jake CC BY-SA 4.0
added 155 characters in body
Jan 26, 2019 at 9:20 comment added jake "$!" is the PID of the last executed program.
Jan 26, 2019 at 3:56 comment added T. Cubbin I'm super new to bash. What does declaring pid="$!" do?
Jan 26, 2019 at 2:56 history edited jake CC BY-SA 4.0
added 6 characters in body
Jan 26, 2019 at 2:43 history answered jake CC BY-SA 4.0