From "man nohup": If the output file nohup.out cannot be created in the current directory, the nohup utility uses the directory named by HOME to create the file.
My guess is that since "sh -c" doesn't start a login shell, it is inheriting the environment of the invoking shell, including the HOME environment variable, and is trying to open it there.
- Jamis On Mar 31, 2008, at 3:37 PM, Thijs van der Vossen wrote:
Here I'm trying to run the command from the cap deploy:start task: [EMAIL PROTECTED] www]$ sudo -p 'sudo password: ' -u app sh -c 'cd /var/ www/boommanager/current && nohup script/spin' nohup: failed to open `nohup.out': Permission denied nohup: failed to open `/home/thijs/nohup.out': Permission denied Anyone a suggestion why nohup is trying to write to /home/thijs/ nohup.out? --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
