psone_launch_pcsx.sh 189 B

12345678
  1. #!/bin/sh
  2. # Launch the process in background, record the PID into a file, wait
  3. # for the process to terminate and erase the recorded PID
  4. pcsx -cdfile "$1"&
  5. pid record $!
  6. wait $!
  7. pid erase