Skip to content

Instantly share code, notes, and snippets.

@adrianlshaw
Created August 8, 2018 18:56
Show Gist options
  • Save adrianlshaw/47c031291701ea7a2b1d36b4d0b85f45 to your computer and use it in GitHub Desktop.
Save adrianlshaw/47c031291701ea7a2b1d36b4d0b85f45 to your computer and use it in GitHub Desktop.
#!/bin/bash
timeout 5 qemu-system-x86_64 -nographic -serial mon:stdio -append 'console=ttyS0' -kernel /vmlinuz &> foo
wc -l foo
rm foo
echo "timeout 5 qemu-system-x86_64 -nographic -serial mon:stdio -append 'console=ttyS0' -kernel /vmlinuz > foo" &> test.sh
chmod +x test.sh
./test.sh
wc -l foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment