1

Bash port auto upgrading script in cron doesn't work properly?

view story
linux-howto

http://unix.stackexchange.com – I've been recently try to write a script to automate checks for new version of ports and software installed on my FreeBSD server. This script is added to root's crontab and fires daily. If I run it from sudo /path/to/script it goes forward decently sending mail with content on my email address. If it's run by cron I get an empty mail. I think that the reason might be that while update sometimes window appears (from make config i think) with compilation options, but I might be wrong. Here's the script: #!/usr/local/bin/bash # DIRECTORIES SETUP script_path_dir="/tmp" working_dir="$script_path_d (HowTos)