[ / / / / / / / / / / / / / ] [ dir / acme / agatha2 / arepa / just / leftpol / monarchy / vg / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.997385>>997438 [Watch Thread][Show All Posts]


user@gentoo-zen2700x> for sh in zsh bash dash "busybox ash"
do
$sh test.sh &; sleep 0.5; pid=$(cat sleep.pid); kill -STOP $pid; sleep 0.5; kill -CONT $pid; wait $!
$sh test.sh &; sleep 0.5; pid=$(cat sleep.pid); kill $pid
done 2>/dev/null| grep '^status'
status: 147
status: 143
status: 0
status: 143
status: 128
status: 143
status: 0
status: 143

And fun thing, dash exits immediatly when sleep receives SIGSTOP. Fuck this shit.

 No.997386

I'm so buttblasted that I forgot to post the script:


sleep 5 &
echo $! >sleep.pid
wait $!
echo status: $?


 No.997436>>997438 >>997464 >>997767

Do not interact with OP. They are clinically insane.


 No.997438

>>997436

How can I act safely around forum users like >>997385 (OP)?


 No.997464

>>997436

>t. cia negro


 No.997466

Well, I just had to share how fun sh scripting was.


 No.997767

>>997436

That statement is homophobic.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
6 replies | 0 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / acme / agatha2 / arepa / just / leftpol / monarchy / vg / vichan ][ watchlist ]