Chintamani Manjare
Chintamani Manjare

Reputation: 1603

setsid is not working, giving error

I want to run a script as a process. so running below command,

setsid test.sh > test.log &

But giving error as below,

setsid: failed to execute test.sh: No such file or directory

Whats wrong here? I have test.sh file with execute permission in current location.

Upvotes: 0

Views: 3213

Answers (1)

Zan Lynx
Zan Lynx

Reputation: 54325

Just as if you were running it without setsid you need to tell it to execute with a complete path.

setsid ./test.sh > test.log &

Upvotes: 3

Related Questions