Sample Header Ad - 728x90

How to properly use taskset in a bash file when launching a program?

0 votes
1 answer
127 views
My bash script is as follows:
#!/bin/bash
sudo taskset 1 ./program &
When running it does nothing. I am able to run the software normally with ./program. I am attempting to do the behavior of "The default behavior is to run a new command with a given affinity mask"
Asked by WorstCoder4Ever (105 rep)
Mar 10, 2025, 09:32 PM
Last activity: Mar 10, 2025, 09:54 PM