I use this script for update my repo slackware(generate asc,txt,etc)
http://slackware.org.uk/people/alien/tools/gen_repos_files.sh
I have "automated" it with my expect script
#!/bin/bashset -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; done
Works 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?