I use this script for update my repo slackware(generate asc,txt,etc)http://slackware.org.uk/people/alien/tools/gen_repos_files.shI have automated it with my expect script#!/bin/shset -efunct(){#script update repo httppass3=proot    expect -c     spawn /usr/local/bin/gen_repos_files.sh -l /tmp/changelog    expect \Enter your GPG passphrase:  \    send \$pass3\n\    interact    find /srv/httpd/htdocs/repos/slackware-mg/ -type f |xargs chmod 644  -v}while inotifywait -qqre modify /http/srv/httpd/htdocs/repos/slackware-mg; do funct; doneWorks perfect,but only if i launch it from a shell,if i run it,from rc.localor crontab..it doen't work,the second script(gen_repos.sh) remain sleeping.Why?
Expect works fine,but only in foreground why?
bash;expect
Solution found,nohup.For examplenohup /usr/local/bin/aggiornailrepo.sh&On rc.localAnd don't forget -o /dev/null on inotifywaitotherwise won't work without a shell