Welcome to the Linux Foundation Forum!

Lab 2.1 - Cannot write process to tasks file

I've tried to write the process to the tasks file but I keep getting a "No such process error." I am running it as the root user on a Ubuntu 20.04 desktop. Any reason why I cannot write the process?

Thanks,
Chris

Comments

  • Posts: 2,443

    Hi @clemay,

    Can you provide the outputs for the following commands running as root?

    1. ls /sys/fs/cgroup/freezer/mycgroup
    2. cat /sys/fs/cgroup/freezer/mycgroup/tasks
    3. ps
    4. echo <bash-process-PID> >> /sys/fs/cgroup/freezer/mycgroup/tasks
    5. cat /sys/fs/cgroup/freezer/mycgroup/tasks

    Regards,
    -Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training