Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

 pwd: /out/package
ppid: 23707
   1: WRITELN sleep 10
   2: CTRL+C
Scan child pids of ppid: 23707
SIGINT
Send signal 2 to pid: 23707
Scan child pids of ppid: 23708
Send signal 2 to pid: 23708
Scan child pids of ppid: 23709
Send signal 2 to pid: 23709
Scan child pids of ppid: 23710
Send signal 2 to pid: 23710
   3: WRITELN echo 123 > 1.txt
   4: WRITELN sleep 10 > 1.txt
   5: CTRL+C
Scan child pids of ppid: 23707
SIGINT
Send signal 2 to pid: 23707
Scan child pids of ppid: 23708
Send signal 2 to pid: 23708
Scan child pids of ppid: 23715
Send signal 2 to pid: 23715
Scan child pids of ppid: 23710
Send signal 2 to pid: 23710
Scan child pids of ppid: 23711
Send signal 2 to pid: 23711
Scan child pids of ppid: 23712
Send signal 2 to pid: 23712
Scan child pids of ppid: 23713
Send signal 2 to pid: 23713
Scan child pids of ppid: 23716
Send signal 2 to pid: 23716
   6: WRITELN cat 1.txt
   7: WRITELN echo success
   8: CTRL+C
Scan child pids of ppid: 23707
SIGINT
Send signal 2 to pid: 23707
Scan child pids of ppid: 23708

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

fgets: sleep 10
mumsh $ fgets: echo 123 > 1.txt
mumsh $ fgets: sleep 10 > 1.txt
mumsh $ fgets: cat 1.txt
mumsh $ fgets: echo success
mumsh $ success
fgets: exit
mumsh $ exit

JOJ Answer

mumsh $ 
mumsh $ mumsh $ 
mumsh $ mumsh $ success
mumsh $ 
mumsh $ exit