Skip to content
Anya Shanahan's Shack

Anya Shanahan's Shack

If it wasn't for carbon-14, I wouldn't date at all

Posted on 2008/09/24 by pete

Cheap and cheerful pwait for linux

#!/bin/bash -p
if [ $# -eq 0 ]; then
echo "Usage: $(basename $0) " 1>&2
exit 1
fi
while [ -d /proc/$1 ]; do sleep 0.5; done

If I implemented it using inotify, I presume I can get rid of the sleep, but that entails compiled code.

CategoriesUncategorized TagsComputers, Linux/Unix, Programming

Post navigation

Previous PostPrevious What does it mean by ‘security code accepted’
Next PostNext Touch typists of the world unite

Links

  • Grandad's Memoirs
  • Pocketcity
  • Potential Buys

Recent Posts

  • sshd 9.8 PerSourcePenalties
  • Voice Transcription
  • Dropping files on apps (Mac)
  • Integrating the paypal SDK in an android app with SDK 31
  • The shocked charger
  • On names and collation
  • The dangers of upgrading
  • Hope in every box
  • (Floating point) math is hard
  • On walled gardens

Tags

  • anime
  • Apple iPhone
  • Birthday
  • c++
  • C/C++
  • cmd
  • Complaints
  • Computers
  • Consoles
  • Details
  • environment
  • explorer
  • Games
  • General
  • Hardware
  • Humor
  • iPad
  • Linux/Unix
  • Mac
  • Malaise
  • Media
  • Mobile
  • Movies
  • Music
  • Notes
  • Pocketcity
  • Politics
  • post
  • Programming
  • Radio
  • Reading
  • reflected
  • Scangers
  • security
  • Software
  • Stuff
  • Tips
  • Tunage
  • TV
  • Uncategorized
  • Usability
  • variables
  • Windows
  • windows
  • Wordpress

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Proudly powered by WordPress