News for hackers. Stuff that matters.
Re:Ask HN: What are you working on (September 2024)? by aveday on Sunday September 29, 2024 @06:16PM (#41691244)
I may be misunderstanding what you're trying to achieve, but you can simulate the bash '&' operator for a running process by pressing ctrl-Z to suspend the process and send it to the background, then running 'bg' to continue the process in the background.
Re:Ask HN: What are you working on (September 2024)? by maxander on Sunday September 29, 2024 @08:43PM (#41692269)
Yeah I was unclear there - I meant the other use of the & operator, 'foo & bar' where bar starts after foo completes. AFAIK, if you ran foo by itself, there's no way to make bar automatically run after foo completes.
Re:Ask HN: What are you working on (September 2024)? by arjvik on Sunday September 29, 2024 @09:19PM (#41692503)
think you mean && there :)
Re:Ask HN: What are you working on (September 2024)? by yencabulator on Tuesday October 01, 2024 @03:42PM (#41713268)
I had that need and made something a lot simpler: https://github.com/tv42/wait-for-pid