DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Reboot After 5 Seconds From A Kernel Panic

  • submit to reddit
echo "5" >/proc/sys/kernel/panic


Snippets Manager replied on Mon, 2012/05/07 - 1:14pm

Thanks :-)

Snippets Manager replied on Tue, 2007/02/20 - 1:39pm

This only works if you have a file in the cwd called '5' with the contents '5'. You meant to say echo, not cat.