Hey guys, I found the portupdater script (DutchDaemon) -> http://forums.freebsd.org/showthread.php?p=39092#post39092
But I don't understand how to use it (and use it in crontab too)
I downloaded the script and did
So, /usr/local/etc/periodic/security/410.portaudit is there and if I run it, it works as expected (but the script says not found :/)
Btw, I'm running it as root and my shell is csh but this doesn't matter I think
What is going wrong?! :/
But I don't understand how to use it (and use it in crontab too)
I downloaded the script and did
chmod +x
, then I put it in /usr/local/sbin but when I try to use it ./portupdater
or portupdater
it doesn't work saying command not found (yes /usr/local/sbin is in my PATH)or if I type sh portupdater
it ends with this output:
Code:
root@freebsd:/usr/local/sbin # sh portupdater
: not found:
Updating portaudit first.
: not found: /usr/local/etc/periodic/security/410.portaudit
: not found:
started at Sat Jan 26 18:39:35 CET 2013
=============== Fetching latest ports snapshop from server. ================
: not found:
portupdater: 78: Syntax error: end of file unexpected (expecting "fi")
So, /usr/local/etc/periodic/security/410.portaudit is there and if I run it, it works as expected (but the script says not found :/)
Btw, I'm running it as root and my shell is csh but this doesn't matter I think
What is going wrong?! :/